I have this face definition that applies globally:
(set-face-attribute 'variable-pitch nil :family "Charis SIL Compact" :height 180)
The problem is that Elfeed and Mu4e also use the variable pitch mode and I don't want that.
I would like to create a custom function called distraction-free-writing
that is bound to a key and when that key is pressed to activate the variable pitch mode in the current Org buffer and also set olivetti-body-width
to a value of 60
.
For fixed pitched font the olivetti value is set to 80
, however variable pitch font is more condensed, so 80 characters fit in a 60
olivetti width.
Is it possible to make that face attribute local for a function?