3

Right now the font in the menu bar is way too big, so I would like to add a line to my .emacs file that regulates that font size. I already have a line that takes care of the buffer font size, but it doesn't affect the menu.

Context: I am sshing into a unix machine from my Mac, and launching emacs from the terminal there.

  • 2
    You need to tell us about your context: platform, etc. There are different ways to tweak the menu-bar. For example see (elisp)X Resources. – Drew May 13 '15 at 22:45
0

This is Drew answer in details.

Configuring emacs menu is tricky but solvable. The problem is that emacs could be built with different visual libraries (like GTK, motif, lucid...) that affect on the menu apperanse different ways not related to emacs.

So what to do:

  1. Understand which visual library your emacs is build with. Menu Help > About emacs. In my case I see the line: GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)

that means that my emacs is built with GTK-3 library. Library major version is important because for GTK-2 and GTK-3 configuration are different.

  1. Go to https://www.gnu.org/software/emacs/manual/html_node/emacs/X-Resources.html and look sublink for the resource of you library (in my case that was "GTK resources")

  2. Find the solution for your case (or google it additionally).

For my case of GTK-3 the following helped: I added:

#pane #menubar, 
#pane #menubar GtkMenuShell, 
#pane #menubar GtkMenuShell * 
{ 
    font-family: "URWPalladio"; 
    font-size: 18px; 
} 

to the file ~/.config/gtk-3.0/gtk.css and menu was bigger after emacs restart.

Useful links for the GTK-3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.