From e305d934ff13af38caebfa7c8b69591e09a07ae7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 28 Apr 2017 10:43:50 +0200 Subject: Emacs: Enrich imenu in js2-mode --- emacs/.emacs.d/init.org | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 4a6c292..1bbfa68 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -2037,6 +2037,7 @@ it though (if (and (not (string-equal name "IM-Javascript-IDE")) (fboundp #'do-it)) (do-it name))) + (add-hook 'js2-mode-hook #'js2-imenu-extras-mode) (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around) (defun ap/js2-prev-error () (interactive) -- cgit 1.4.1