diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-05-10 08:42:01 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-05-10 08:42:01 -0700 |
commit | 7fb4a3bd868dd99082287ab62310c17a26edb290 (patch) | |
tree | 24c312caaa04400f8333023712d696e151bd9baf | |
parent | [emacs] some minor tweask to autocomplete (diff) | |
download | emacs.d-7fb4a3bd868dd99082287ab62310c17a26edb290.tar.gz |
[emacs] add support for javascript
-rw-r--r-- | emacs.d/modules/module-javascript.el | 12 |
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) |