Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable global menu bar for Emacs on Ubuntu (Unity 11.04)

I use latest Ubuntu 11.04 which has Unity desktop. I am learning to use Emacs 23.

As you know, Unity has top panel. I want to enable global menu bar for Emacs so that I could save valuable screen space. (I use small screen laptop)

How to enable global menu bar? Your help will be much appreciated. Thank you.

like image 832
chhantyal Avatar asked Sep 21 '11 09:09

chhantyal


2 Answers

  1. Use your favorite editor to open this file: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
  2. Find the word "emacs"
  3. Change "emacs" to other word
  4. Save the file
  5. sudo ldconfig

update:The file of "libappmenu.so" moved to "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies" now in ubuntu 12.04.

like image 59
NeaghFoz Avatar answered Sep 25 '22 01:09

NeaghFoz


appmenu-gtk (which provides the global menu bar) specifically blacklisted emacs since it does not play nicely together so unfortunately you probably can't use it with emacs.

like image 36
alexmurray Avatar answered Sep 26 '22 01:09

alexmurray