all repos — archive/dotfiles @ e305d934ff13af38caebfa7c8b69591e09a07ae7

Superseded by nixfiles

Emacs: Enrich imenu in js2-mode
Alan Pearce alan@alanpearce.uk
Fri, 28 Apr 2017 10:43:50 +0200
commit

e305d934ff13af38caebfa7c8b69591e09a07ae7

parent

0979ef5aa493053686876261bf9e3b01b055af6a

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2037,6 +2037,7 @@ "Don't create a menu from js2-mode"               (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)