cstby / fixed-pitch-mode

Use a proportional typeface globally while keeping a monospaced typeface for code in Emacs
GNU General Public License v3.0
48 stars 0 forks source link

How to keep setup mode-line to use `fixed-pitch-mode`? #1

Closed Yevgnen closed 2 years ago

Yevgnen commented 2 years ago

Do I have to setup each face individually outside fixed-pitch-mode? Thanks.

cstby commented 2 years ago

Unfortunately, yes. This package uses buffer-set-face to change the face for an entire buffer. The mode line is sort of special and isn't treated like a buffer.

As you mentioned, one option would be to set the mode line faces to inherit from your fixed-pitch face. Another option would be to use a more minimal modeline package. I use doom modeline, which right-aligns everything after the buffer percent indicator. (The percentage indicator itself shifts around a little, but not enough that I'm bothered by it.)

In any case, the problem can't be solved here.