Change frame font size dynamically
font-size.el provides the features to change frame font size.
The difference between the built-in text-scale-adjust and font-size.el is a scope of applying.
The text-scale-adjust changes the font size of the text of a particular buffer, and doesn't target the mode line and minibuffer.
But, font-size.el targets all text of a frame.
Get font-size.el and install it to load-path directory.
(require `font-size)
(font-size-init 16)
font-size.el provides:
- font-size-change
- changes the font size interactive like
text-scale-adjust
- changes the font size interactive like
- font-size-decrease
- decreseas the font size
- font-size-increase
- increases the font size
- font-size-default
- change the font size to default
The following is an example key-binding definition like Mac OS Applications.
(define-key global-map (kbd "M-+") 'font-size-increase)
(define-key global-map (kbd "M--") 'font-size-decrease)
(define-key global-map (kbd "M-0") 'font-size-default)
- Fork it ( http://github.com/nabeix/emacs-font-size )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
GPL v3
