~typescript config

This commit is contained in:
oreodave
2019-07-29 12:40:41 +01:00
parent 5f7d5eb2f9
commit c95d9f505f

View File

@@ -155,11 +155,13 @@ flycheck python checker, as well as the interpreter, to be Python3
scripts into the REPL scripts into the REPL
** JavaScript/TypeScript ** JavaScript/TypeScript
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(after! typescript (after! typescript-mode
(setq typescript-indent-level 2) (setq typescript-indent-level 2)
(setq tide-format-options '(:indentSize 2 :tabSize 2))
(map! (map!
:localleader :localleader
:desc "=" 'tide-format :map typescript-mode-map
:desc "Format code" "=" 'tide-format
) )
) )
#+END_SRC #+END_SRC