I'm creating custom major mode derived from
I would like to hide/remove that menu since I don't have need for it (deriving from
js-mode mostly for indentation settings which I know is probably an overkill).
I found this piece of information here:
(define-key global-map [menu-bar words] nil)
so I have tried calling
my-mode-hook, but neither option worked (
Any ideas on what I'm doing wrong with this approach? Or perhaps there is another way to hide/remove menu items?