Emacs23 Buffer Menu Font (GTK)

I recently upgraded to emacs23 (Ubuntu 10.04) and I managed to get my faces (fonts) sorted by the corresponding .emacs parameters.

However, one font that I cannot change is the one that is used to display the buffer menu (i.e. when you CTRL + left-click on the buffer, you will get a pop-up menu listing all the open buffers).

The problem is that the font used to display this menu is proportional (not fixed), and this creates a big mess in the menu - nothing is aligned vertically, and I often use this to see which buffers contain files that are located in shared directories. The proportional font has paths throughout the space.

I believe that Ubuntu emacs23 was built with GTK, not Lucid. Some of the things I read seem to indicate that there is no way to install this font in Emacs - you need to do this from the outside using the GTK configuration - if so, how?

Otherwise, if this is not possible, how difficult is it to recompile emacs23 with Lucid rather than GTK support on Ubuntu? Is this easy to do with apt-get source?

+3
source share
1 answer

I believe I found the answer:

http://www.gnu.org/software/emacs/manual/html_node/emacs/GTK-resources.html

, ~/.emacs.d/gtkrc GTK Emacs GTK.

$ cat ~/.emacs.d/gtkrc
style "menufont"
{
  font_name = "monospace 10"  # Pango font name
}
widget "*emacs-menuitem*" style "menufont"

, .

+5

Source: https://habr.com/ru/post/1759040/