Skip to content

Commit

Permalink
Set variable pitch face explicitly instead of through inherit to make…
Browse files Browse the repository at this point in the history
… mixed-pitch-mode work
  • Loading branch information
tefkah committed May 27, 2021
1 parent fd3b808 commit 1136b86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nano-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@
(set-face 'highlight 'nano-face-subtle)
;;(set-face 'fixed-pitch 'default)
(set-face 'fixed-pitch-serif 'nano-face-default)
(set-face 'cursor 'nano-face-default)
(if 'nano-face-family-variable-pitch
(set-face 'variable-pitch 'nano-face-variable-pitch)
(set-face-attribute 'variable-pitch nil ;; to work with mixed-pitch
:foreground (face-foreground 'default)
:background (face-background 'default)
:family (face-attribute 'nano-face-variable-pitch :family)
:height (face-attribute 'nano-face-variable-pitch :height))
(set-face 'variable-pitch 'nano-face-default))
(set-face 'cursor 'nano-face-default)

(set-face-attribute 'cursor nil
:background (face-foreground 'nano-face-default))
Expand Down

0 comments on commit 1136b86

Please sign in to comment.