Add electric indent mode to js2-mode

This commit is contained in:
Tom Willemse 2015-03-24 11:22:04 +01:00
parent cd55a123e0
commit 5d9ad8a032

View file

@ -1291,7 +1291,6 @@ from myaethon2.core.decorators import (
(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
(add-hook 'haskell-mode-hook 'oni:haskell-mode-func)
(add-hook 'java-mode-hook #'electric-pair-local-mode)
(add-hook 'js-mode-hook #'moz-minor-mode)
(add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline)
(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser))))
(add-hook 'slime-mode-hook #'set-up-slime-ac)
@ -1360,7 +1359,8 @@ from myaethon2.core.decorators import (
#'oni:reset-default-directory)
(oni:add-hooks 'js2-mode-hook
#'tern-mode #'moz-minor-mode #'electric-pair-local-mode)
#'tern-mode #'moz-minor-mode #'electric-pair-local-mode
#'electric-indent-local-mode)
(oni:add-hooks 'lisp-mode-hook
(lambda () (setf ac-sources '(ac-source-slime-simple)))