Emacs Redux

Return to the Essence of Text Editing

Playing With Font Sizes

| Comments

Adjusting interactively the font size is Emacs is pretty easy. Three keybindings refer to the mighty text-scale-adjust command - C-x C-+(increase font size), C-x C--(decrease font size) and C-x C-0(reset font size to default). After using any of the keybindings you can proceed to adjust the font size further just by pressing +, - or 0 respectively. text-scale-adjust is mostly a wrapper around text-scale-increase and text-scale-decrease.

You might want to bind them C-+ and C--(generally a bad idea since you won’t be able to type stuff like C-- some-command anymore) to get more common keybindings for the operations.

1
2
(global-set-key (kbd "C-+") 'text-scale-increase)
(global-set-key (kbd "C--") 'text-scale-decrease)

Comments