In my terminal (I have terminator) I can use the key combinations Ctrl + and Ctrl - to increase / decrease the font size.
In emacs I can do the following to set the font-height:
(set-face-attribute 'default nil :height 70)
But I do not know how to increase / decrease it. How could I easily add this to my emacs configuration?
Vanilla Emacs: You can use ` C-x C-+ ' and 'C-x C--' ( 'text-scale-adjust' ) to increase or decrease the buffer text size (` C-+ ' or 'C--' to repeat). To restore the default (global) face height, type 'C-x C-0' .
You can press C-x C-+ and C-x C-- to increase or decrease the buffer text size.
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 .
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).
I think you want C-x C-+
or C-x C--
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With