all repos — nixfiles @ e305d934ff13af38caebfa7c8b69591e09a07ae7

System and user configuration, managed by nix and home-manager

Emacs: Enrich imenu in js2-mode

Alan Pearce
commit

e305d934ff13af38caebfa7c8b69591e09a07ae7

parent

0979ef5aa493053686876261bf9e3b01b055af6a

1 file changed, 1 insertion(+), 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)