Setting emacs font under windows

I am having trouble changing the font for my emacs configuration. I tried using set-default-font and I was able to add a tab to my desired font, however some elements still display as the old font (e.g. python class names and class names)

+4
source share
2 answers

set-default-font is really deprecated and deprecated in Emacs 23 in favor of its new set of font-name-frames (which is not much better). The current Emacs tutorial offers several ways to set the default font , but I assume you already found them by seeing how you tried the set-default-font font ...

The elisp code I use is actually different from all the methods suggested there:

<Preview> ;; [in .emacs] ;; Use 10-pt Consolas as the default font ( set-face attribute 'default nil : console family: height 100 )

set-face-attribute seems better than set-default-font; at least it seems to use Consolas consistently even in things like class names and Python functions.

+9
source

Mx customize-face default allows you to customize the default font.

If some things are still displayed in a font that you don’t like, then place the cursor over the surveillance and enter Mx customize-face ; the face over which your cursor is located will be set by default.

+1
source

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


All Articles