aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-07-28 16:11:36 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-07-28 16:11:36 +0100
commit9c020d15d3dcd670f118e44f3c8e74fb060a3bfc (patch)
tree070449b7de59a8024821421d12366621d3248fab
parent5377486f4ca5e4004bc25832eaae0420b0496ff0 (diff)
downloaddotfiles-9c020d15d3dcd670f118e44f3c8e74fb060a3bfc.tar.gz
dotfiles-9c020d15d3dcd670f118e44f3c8e74fb060a3bfc.tar.bz2
dotfiles-9c020d15d3dcd670f118e44f3c8e74fb060a3bfc.zip
+js/ts config
+keybind for js: `,=` for formatting code +typescript-indent-level = 2
-rw-r--r--doom.d/config.org12
1 files changed, 12 insertions, 0 deletions
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