summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-04-28 10:43:50 +0200
committerAlan Pearce2017-04-28 10:43:50 +0200
commite305d934ff13af38caebfa7c8b69591e09a07ae7 (patch)
tree3e1f890a2251dc1fa775e0022e633a19b2688967
parent0979ef5aa493053686876261bf9e3b01b055af6a (diff)
downloadnixfiles-e305d934ff13af38caebfa7c8b69591e09a07ae7.tar.lz
nixfiles-e305d934ff13af38caebfa7c8b69591e09a07ae7.tar.zst
nixfiles-e305d934ff13af38caebfa7c8b69591e09a07ae7.zip
Emacs: Enrich imenu in js2-mode
-rw-r--r--emacs/.emacs.d/init.org1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 4a6c292a..1bbfa680 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)