From c95d9f505f4861a3083214ac3919d748df11b2bf Mon Sep 17 00:00:00 2001 From: oreodave Date: Mon, 29 Jul 2019 12:40:41 +0100 Subject: ~typescript config --- doom.d/config.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index 447a5f6..5b9b304 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -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 -- cgit v1.2.3-13-gbd6f