enabled js2-imenu-extra-mode in javascript mode

This commit is contained in:
Daniel Wu 2014-12-17 13:43:42 -05:00 committed by syl20bnr
parent a37e22a8b3
commit 4402f05405

View file

@ -29,7 +29,10 @@ which require an initialization must be listed explicitly in the list.")
(defun javascript/init-js2-mode ()
(use-package js2-mode
:defer t
:init (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
:init
(progn
(add-hook 'js2-mode-hook 'js2-imenu-extras-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)))
:config
(progn
;;(spacemacs/declare-prefix-for-mode 'js2-mode "m" "major mode")