Emacs: Enrich imenu in js2-mode
Alan Pearce alan@alanpearce.uk
Fri, 28 Apr 2017 10:43:50 +0200
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/init.org → emacs/.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)