all repos — nixfiles @ ea6f0d0b28a6a4a31954e463077715580fc53145

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

Emacs: Remove js2 imenu menu

Alan Pearce
commit

ea6f0d0b28a6a4a31954e463077715580fc53145

parent

0b6acd37d6d60a624ce6a469ae552b30d65dce31

1 file changed, 5 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1850,6 +1850,11 @@ :interpreter ("node" . js2-mode)
:functions js2-next-error :config (progn (define-key js2-mode-map [menu-bar Javascript] nil) + (defun js2--imenu-around (do-it name) + "Don't create a menu from js2-mode" + (unless (string-equal name "IM-Javascript-IDE") + (do-it name))) + (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around) (setq js2-skip-preprocessor-directives t) (defun ap/javascript-setup () (auto-indent-mode -1))