diff options
Diffstat (limited to '')
| -rw-r--r-- | settings/setup-js-mode.el | 10 |
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) |
