Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added options to use custom font, variable pitch font, and custom font easily customizable font size. #77

Merged
merged 5 commits into from
May 31, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set default face properly instead of through set-face
  • Loading branch information
tefkah committed May 27, 2021
commit fd3b80884e95884e765bede640616a97fb5f91b0
5 changes: 3 additions & 2 deletions nano-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@
;; XXX the following seems to be a no-op, should it be removed?
(set-face-attribute 'default nil
:foreground (face-foreground 'default)
:background (face-background 'default))
:background (face-background 'default)
:family (face-attribute 'nano-face-default :family)
:height (face-attribute 'nano-face-default :height))

(if (display-graphic-p)
(set-face-attribute 'bold nil :weight 'regular)
(set-face-attribute 'bold nil :weight 'bold))

;; Structural
(set-face 'default 'nano-face-default)
(set-face 'bold 'nano-face-strong)
(set-face 'italic 'nano-face-faded)
(set-face 'bold-italic 'nano-face-strong)
Expand Down