1

I've chosen a font + font size for my emacs, via

Options -> Set Default Fonts.

I have a dual monitor setup, and on the second monitor I want to use a different font size from the same family. But when I go to

Options -> Set Default Fonts

it does not remember what fonts I have set. How can I change the font size without changing the font family? I am okay doing this manually, i.e. I do not need emacs to recognize which monitor I'm using and then select the font size automatically (although that of course would be cool :)

1 Answer 1

4

See node Text Scale of the Emacs manual (C-h r).

It tells you how to incrementally enlarge/reduce the size of the text in a buffer.

14.11 Text Scale

To increase the height of the default face in the current buffer, type C-x C-+ or C-x C-=. To decrease it, type C-x C--. To restore the default (global) face height, type C-x C-0. These keys are all bound to the same command, text-scale-adjust, which looks at the last key typed to determine which action to take.

The final key of these commands may be repeated without the leading C-x. For instance, C-x C-= C-= C-= increases the face height by three steps. Each step scales the text height by a factor of 1.2; to change this factor, customize the variable text-scale-mode-step. A numeric argument of 0 to the text-scale-adjust command restores the default height, the same as typing C-x C-0.

The commands text-scale-increase and text-scale-decrease increase or decrease the height of the default face, just like C-x C-+ and C-x C-- respectively. You may find it convenient to bind to these commands, rather than text-scale-adjust.

The command text-scale-set scales the height of the default face in the current buffer to an absolute level specified by its prefix argument.

The above commands automatically enable the minor mode text-scale-mode if the current font scaling is other than 1, and disable it otherwise.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.