all repos — nixfiles @ 62a8fbc7892d53ee81caaa8361ca6407976245f0

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

Emacs: Workaround strange menu error

Alan Pearce
commit

62a8fbc7892d53ee81caaa8361ca6407976245f0

parent

187e5e28a32e4e55b26142eae5400af19a854fbf

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1917,7 +1917,8 @@ :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") + (if (and (not (string-equal name "IM-Javascript-IDE")) + (fboundp #'do-it)) (do-it name))) (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around) (setq js2-skip-preprocessor-directives t)