how to autoload the menu bar in emacs

209 views Asked by At

I have installed YaSnippet in my emacs. Every time I start emacs, I have to turn on the menu bar manually by M-x menu-bar-mode, how do I load it by default ?

Also strangely the YaSnippet menu shows up the first time the menu bar comes up, however after I move to another buffer and back, I cant see the menu anymore ! How do I get it back without restarting emacs?

2

There are 2 answers

0
Nicolas Dudebout On BEST ANSWER

The menu bar is loaded by default in emacs. Therefore if you have to turn in on in every buffer it means that you have disabled it in your init file. Remove a line that would say something like (menu-bar-mode 0).

0
jdd On

To start menu-bar-mode automatically, just put (menu-bar-mode 1) in your ~/.emacs

I'm afraid your yasnippet problem is outside of my realm of lore :(