How to set the font for new frames in Emacs 23
I had been using the following elisp to set my font in Emacs 23. However, it did not work when creating new frames with C-x 5 2
.
(if (>= emacs-major-version 23) (set-default-font "Monospace-11"))
Here is how I set the font for all frames:
(if (>= emacs-major-version 23) (modify-all-frames-parameters '((font . "Monospace-11"))))
See the documentation for modify-all-frames-parameters for more information.
Related posts
- Magit in Spacemacs (evil-magit) notes — posted 2018-11-02
- Switching from Emacs to Vim (actually Spacemacs) — posted 2015-12-31
- Colorized, interactive "git blame" in Emacs: vc-annotate — posted 2011-05-28
- My Emacs Python environment — posted 2010-05-10
- Emacs espresso-mode for jQuery — posted 2010-03-10
- Notes on C++ development with Emacs on Ubuntu Linux — posted 2009-07-08
Comments
Thanks for this tips.