Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs 24 Ubuntu Menu Panel

just installed Emacs 24 on a ubuntu precise OS. The menu bar in the top panel is missing a number of options (e.g. using Auctex, all the Latex options).

I recall seeing on the web somewhere that it was possible to have the menu on top of the Emacs frame rather than the unity default of the top panel. There is an answer on SO for how to enable the global menubar in ubuntu. Can someone please point me to how to disable it in the global menu until it gets to the point where they play well together.

Thanks

like image 859
Tahnoon Pasha Avatar asked Dec 21 '22 15:12

Tahnoon Pasha


2 Answers

Ubuntu has a hardcoded hack to disable the global menubar for applications matching certain filename patterns. emacs is among those, as is firefox, another popular program that suffers from the same sorts of problems of GTK detached menubars not updating in the usual way that X programs expect them to.

Try running update-alternatives to select emacs24 as your default Emacs, then use emacs to start it, rather than emacs24.

like image 76
JSON Avatar answered Dec 27 '22 10:12

JSON


I was using the symlink method mentioned by @Bernhard Kausler, but found I couldn't pin the icon that resulted from staring emacs from the shell in this way without it reverting to using the global menu.

I got a working unity launcher shortcut with this .desktop file:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_NZ]=emacs
Name[en_NZ]=Gnu Emacs 24
Exec=emacs
Name=Gnu Emacs 24
Icon=emacs
StartupWMClass=Emacs24

Now I can have emacs pinned to the launcher and it launches with its own menu bar.

like image 28
muskrat Avatar answered Dec 27 '22 11:12

muskrat