~typescript config
This commit is contained in:
@@ -155,11 +155,13 @@ flycheck python checker, as well as the interpreter, to be Python3
|
||||
scripts into the REPL
|
||||
** JavaScript/TypeScript
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(after! typescript
|
||||
(after! typescript-mode
|
||||
(setq typescript-indent-level 2)
|
||||
(setq tide-format-options '(:indentSize 2 :tabSize 2))
|
||||
(map!
|
||||
:localleader
|
||||
:desc "=" 'tide-format
|
||||
:map typescript-mode-map
|
||||
:desc "Format code" "=" 'tide-format
|
||||
)
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user