From 9c020d15d3dcd670f118e44f3c8e74fb060a3bfc Mon Sep 17 00:00:00 2001 From: oreodave Date: Sun, 28 Jul 2019 16:11:36 +0100 Subject: +js/ts config +keybind for js: `,=` for formatting code +typescript-indent-level = 2 --- doom.d/config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index d2f6af1..37e6652 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -149,6 +149,18 @@ flycheck python checker, as well as the interpreter, to be Python3 testing utilities or anything like that - I run my python code a LOT and thus need commands for sending bits or whole scripts into the REPL +** JavaScript/TypeScript +#+BEGIN_SRC emacs-lisp +(after! typescript + (setq typescript-indent-level 2) + (map! + :localleader + :desc "=" 'tide-format + ) + ) +#+END_SRC +- Typescript (in my opinion) should be indented by 2 +- I like having one keybind to format a file, thus need to rebind ** Org #+BEGIN_SRC emacs-lisp (after! org -- cgit v1.2.3-13-gbd6f