How do I change emacs default font size and font type?

后端 未结 8 943
孤街浪徒
孤街浪徒 2020-12-07 13:15

I am using emacs 23.3. I need to change the font size and font type, can anyone help me?

相关标签:
8条回答
  • 2020-12-07 13:56

    If you use Linux/X11, you may need to set this in ~/.Xdefaults. I have set the font there since the other answers here have no effect.

    I'm able to see available font settings by running in Emacs: helm-select-xfont

    Then I start typing Conso and I see entries like:

    -Consolas-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1
    ...
    

    So then I put it into ~/.Xdefaults, setting size 12 as:

    Emacs.font: xft:-*-Consolas-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1
    

    and restart Emacs.

    0 讨论(0)
  • 2020-12-07 13:57

    You can use the menu bar. Go to Options->Set Default Font....

    After you choose a font, don't forget to press Options->Save Options—otherwise your new font will not be saved after you close Emacs.

    0 讨论(0)
提交回复
热议问题