From 7fb4a3bd868dd99082287ab62310c17a26edb290 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 10 May 2018 08:42:01 -0700 Subject: [emacs] add support for javascript --- emacs.d/modules/module-javascript.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 emacs.d/modules/module-javascript.el (limited to 'emacs.d/modules') 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) -- cgit 1.4.1