improve typescript ux

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2023-01-23 12:56:41 -05:00
parent 9dc8a5c8de
commit 026f90b4fe
2 changed files with 29 additions and 2 deletions

View File

@ -87,7 +87,12 @@ in {
(other-window 1)
(find-file arg))
(xterm-mouse-mode)
;;;; Mouse scrolling in terminal emacs
(unless (display-graphic-p)
;; activate mouse-based scrolling
(xterm-mouse-mode 1)
(global-set-key (kbd "<mouse-4>") 'scroll-down-line)
(global-set-key (kbd "<mouse-5>") 'scroll-up-line))
'';
usePackageVerbose = true;
@ -237,6 +242,13 @@ in {
'';
};
fountain-mode = {
enable = true;
mode = [
''("\\.fountain\\'" . fountain-mode)''
];
};
ivy = {
enable = true;
demand = true;
@ -410,7 +422,12 @@ in {
js2-mode.enable = true;
#rjsx-mode.enable = true;
tide.enable = true;
typescript-mode.enable = true;
typescript-mode = {
enable = true;
config = ''
(setq typescript-indent-level 2)
'';
};
deno-fmt = {
enable = true;
@ -477,6 +494,11 @@ in {
pname = "xe-tools";
src = ./xe-tools.el;
});
general = ''
(general-nmap
:prefix "SPC"
"x-l-d" '(xe/look-of-disapproval))
'';
};
};
};

View File

@ -5,4 +5,9 @@
(if (or (interactive-p) display-anyway)
(message "%d buffers in this Emacs" buf-count)) buf-count))
(defun xe/look-of-disapproval ()
"Just in case we need this"
(interactive)
(insert "ಠ_ಠ"))
(provide 'xe-tools)