Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the font size in Emacs?

I also want to save the font size in my .emacs file.

like image 744
Juba Avatar asked Nov 17 '08 01:11

Juba


People also ask

What is the default Emacs font?

By default, Emacs displays text on graphical displays using a 10-point monospace font, and the font size can be changed interactively (see Text Scale).

How do you change the font on Spacemacs?

Another way is to use the key sequence "SPC z x" and then press "+/=" key to increase font size or "-" key to decrease font size. Other options are shown on the which-key menu. This effects only the present buffer. By the way, you can customize the step size via the variable text-scale-mode-step .


1 Answers

(set-face-attribute 'default nil :height 100) 

The value is in 1/10pt, so 100 will give you 10pt, etc.

like image 105
huaiyuan Avatar answered Sep 23 '22 19:09

huaiyuan