git clone 'git://'

Melpa Status Melpa Stable Status

Easily adjust the font size in all Emacs frames

This package provides commands for increasing or decreasing the default font size in all GUI Emacs frames – it is like an Emacs-wide version of text-scale-mode.

It works by adjusting the height of the default face in the user theme, which is always combined with any other loaded themes.

It's handy for quickly adjusting the font size for readability or impromptu screen-sharing.



Ensure default-text-scale.el is in a directory on your load-path, and add the following to your ~/.emacs or ~/.emacs.d/init.el:

(require default-text-scale)
(global-set-key (kbd "C-M-=") 'default-text-scale-increase)
(global-set-key (kbd "C-M--") 'default-text-scale-decrease)


If you're an Emacs 24 user or you have a recent version of package.el you can install default-text-scale from the MELPA repository. The version of default-text-scale there will always be up-to-date.

(global-set-key (kbd "C-M-=") 'default-text-scale-increase)
(global-set-key (kbd "C-M--") 'default-text-scale-decrease)


Author: Steve Purcell


This little library was extracted from the author's full Emacs configuration, which readers might find of interest.

Steve Purcell's blog // @sanityinc on Twitter