+js/ts config

+keybind for js: `,=` for formatting code
+typescript-indent-level = 2
This commit is contained in:
oreodave
2019-07-28 16:11:36 +01:00
parent 5377486f4c
commit 9c020d15d3

View File

@@ -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