pinwheel: Use typescript-ts-mode for typescript in emacs
This commit is contained in:
@@ -495,6 +495,7 @@ Setup prefix for keybindings.
|
|||||||
(javascript-mode . eglot-ensure)
|
(javascript-mode . eglot-ensure)
|
||||||
(js-mode . eglot-ensure)
|
(js-mode . eglot-ensure)
|
||||||
(js-jsx-mode . eglot-ensure)
|
(js-jsx-mode . eglot-ensure)
|
||||||
|
(typescript-ts-mode . eglot-ensure)
|
||||||
(rust-mode . eglot-ensure)
|
(rust-mode . eglot-ensure)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -546,6 +547,8 @@ Setup prefix for keybindings.
|
|||||||
(setq
|
(setq
|
||||||
js-indent-level 2
|
js-indent-level 2
|
||||||
js2-basic-offset 2)
|
js2-basic-offset 2)
|
||||||
|
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Rust
|
** Rust
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ let
|
|||||||
|
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
extraEmacsPackages = epkgs: [ epkgs.flymake-go-staticcheck ];
|
extraEmacsPackages = epkgs: [
|
||||||
|
epkgs.flymake-go-staticcheck
|
||||||
|
epkgs.treesit-grammars.with-all-grammars
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
e = pkgs.writeShellScriptBin "e" ''
|
e = pkgs.writeShellScriptBin "e" ''
|
||||||
|
|||||||
Reference in New Issue
Block a user