diff options
author | Alan Pearce | 2016-07-07 13:23:50 +0200 |
---|---|---|
committer | Alan Pearce | 2016-07-07 13:23:50 +0200 |
commit | ea6f0d0b28a6a4a31954e463077715580fc53145 (patch) | |
tree | 2380ca4fde18bfc1ee4d3973bf3b0e21bfc12c5d /tag-emacs | |
parent | 0b6acd37d6d60a624ce6a469ae552b30d65dce31 (diff) | |
download | nixfiles-ea6f0d0b28a6a4a31954e463077715580fc53145.tar.lz nixfiles-ea6f0d0b28a6a4a31954e463077715580fc53145.tar.zst nixfiles-ea6f0d0b28a6a4a31954e463077715580fc53145.zip |
Emacs: Remove js2 imenu menu
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.org | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 5c3a14c6..6217e9ae 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1850,6 +1850,11 @@ it though :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)) |