emacs: Change how font is set
This commit is contained in:
parent
7a0e7df4de
commit
ae72f29d04
1 changed files with 9 additions and 1 deletions
|
@ -57,7 +57,7 @@ This sets some variables with my personal preferences for easy customization
|
|||
#+begin_src emacs-lisp
|
||||
(defvar my/default-font "Iosevka Nerd Font")
|
||||
(defvar my/variable-width-font "Iosevka Aile")
|
||||
(defvar my/default-font-height 140)
|
||||
(defvar my/default-font-height 13)
|
||||
(defvar my/default-font-weight 'normal)
|
||||
(defvar my/default-font-width 'normal)
|
||||
(defvar my/variable-width-font-height 1.1)
|
||||
|
@ -395,6 +395,14 @@ I prefer the [[https://draculatheme.com][dracula theme]]
|
|||
Use Iosevka as font.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'default-frame-alist `(font . ,(format "%s=%d:weight=%s:width=%s"
|
||||
my/default-font
|
||||
my/default-font-height
|
||||
my/default-font-weight
|
||||
my/default-font-height)))
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(set-face-attribute 'default nil
|
||||
:family my/default-font
|
||||
:weight my/default-font-weight
|
||||
|
|
Loading…
Reference in a new issue