summaryrefslogtreecommitdiff
path: root/settings/setup-js-mode.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2016-11-08 22:06:27 -0800
committerbenj <benj@rse8.com>2016-11-08 22:06:27 -0800
commit20d185389026ba556efdcd31e2a952e843dba622 (patch)
treef8f162f586f20b73866a42d78356ff8daf170b65 /settings/setup-js-mode.el
parentb4e35c9de3c34c213f68d7a9dbf1a8797845ad04 (diff)
downloademacs-20d185389026ba556efdcd31e2a952e843dba622.tar
emacs-20d185389026ba556efdcd31e2a952e843dba622.tar.gz
emacs-20d185389026ba556efdcd31e2a952e843dba622.tar.bz2
emacs-20d185389026ba556efdcd31e2a952e843dba622.tar.lz
emacs-20d185389026ba556efdcd31e2a952e843dba622.tar.xz
emacs-20d185389026ba556efdcd31e2a952e843dba622.tar.zst
emacs-20d185389026ba556efdcd31e2a952e843dba622.zip
added packages: ember, scala, ensime, clojure, js, magit, web
Diffstat (limited to 'settings/setup-js-mode.el')
-rw-r--r--settings/setup-js-mode.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/settings/setup-js-mode.el b/settings/setup-js-mode.el
new file mode 100644
index 0000000..a3434fc
--- /dev/null
+++ b/settings/setup-js-mode.el
@@ -0,0 +1,10 @@
+(require 'js2-mode)
+
+(add-hook 'js2-mode-hook 'ac-js2-mode)
+(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
+
+(custom-set-variables
+ '(js2-basic-offset 2)
+ '(js2-bounce-indent-p t))
+
+(provide 'setup-js-mode)