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)
|
||||
(js-mode . eglot-ensure)
|
||||
(js-jsx-mode . eglot-ensure)
|
||||
(typescript-ts-mode . eglot-ensure)
|
||||
(rust-mode . eglot-ensure)
|
||||
)
|
||||
)
|
||||
@@ -546,6 +547,8 @@ Setup prefix for keybindings.
|
||||
(setq
|
||||
js-indent-level 2
|
||||
js2-basic-offset 2)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
|
||||
#+END_SRC
|
||||
** Rust
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
||||
@@ -7,7 +7,10 @@ let
|
||||
|
||||
alwaysEnsure = 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" ''
|
||||
|
||||
Reference in New Issue
Block a user