summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:42:01 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:42:01 -0700
commit7fb4a3bd868dd99082287ab62310c17a26edb290 (patch)
tree24c312caaa04400f8333023712d696e151bd9baf
parent[emacs] some minor tweask to autocomplete (diff)
downloademacs.d-7fb4a3bd868dd99082287ab62310c17a26edb290.tar.gz
[emacs] add support for javascript
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-javascript.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs.d/modules/module-javascript.el b/emacs.d/modules/module-javascript.el
new file mode 100644
index 0000000..24f04b1
--- /dev/null
+++ b/emacs.d/modules/module-javascript.el
@@ -0,0 +1,12 @@
+(require 'config-package)
+
+(use-package graphql-mode)
+
+(use-package js2-mode
+  :mode (("\\.js$" . js2-mode))
+  :config
+  (setq-default
+   js2-mode-indent-ignore-first-tab t
+   js-indent-level 2))
+
+(use-package rjsx-mode)