Emacs: Toggle Monospace / Proportional Font
Toggle Monospace / Proportional Font
- Alt+x
variable-pitch-mode
- Toggle between monospace and proportional font, in current buffer.


Proportional font is useful for reading info doc, email, etc. Proportional font is easier to read, and shows 20 or more characters per line. It also works great for coding too (except Python). Try it. You may be surprised.
2010-12-01 Thanks to Oscar Carlsson for suggesting variable-pitch-mode.
Problem of Using Non-Monospace Font in Code
Tried to use Non-Monospace in code, for few months in different years. But i always ends up not adopting.
problem is hard to describe, various minor details.
one of them, is that in emacs, it screws up the alignment of left margin when you have line numbering on.

variable-pitch-mode regex string legibility problem
another problem is when you have complex regex string.
with variable width font, it cannot distinguish neighbor APOSTROPHE and QUOTATION MARK.
in general, regex became harder to read if it contains space or l1|O0

Emacs Monospace, Proportional Font
Emacs, font setup
- Emacs: Change Font Size
- Emacs: Change Default Font Size by Command, for Current Session 💠
- Emacs: Get Char Info. Name, Position, Font, Encoding, Syntax, Etc
- Emacs: Toggle Monospace / Proportional Font
- Best Unicode Fonts for Programer
- Emacs: Cycle Fonts by Command 💠
- Emacs Init: Setup Font
- Emacs Init: Font for Unicode Symbols
- Emacs Init: Font for Emoji
- Emacs Init: Font for Chinese
- Emacs Init: Minibuffer Font Size
- Emacs Init: Variable Pitch Mode (Proportional Font)
- Elisp: Modify Default Face (Font)
- Emacs Init: Display Lambda as λ