How do I get my Emacs to *always* use 6x13 on X11

后端 未结 3 625
闹比i
闹比i 2021-02-04 09:33

I recently declared .emacs bankrupcy and reorganized my init stuff. In the process, I ripped out all the hacky font selection stuff I had accrued over the years, figuring there

3条回答
  •  情书的邮戳
    2021-02-04 10:19

    You want to set the default frame parameters in your .emacs.

    • find out the name of the font you want to use
    • add the needed value to the default-frame-alist.

    The easiest way, actually, is to use customize and customize default-frame-alist, but can also use elisp and write

    (setq default-frame-alist 
       '(font . "-*-*-medium-r-normal--16-*-*-*-*-*-fontset-hiramin_w6"))
    

    That's stolen from my emacs, you'll need to find the full font name (xfontsel?) for the font you want.

    See also the EmacsWiki on setting fonts and faces.

提交回复
热议问题