emacs: Change how font is set

This commit is contained in:
Erwin Boskma 2023-09-13 15:57:56 +02:00
parent 7a0e7df4de
commit ae72f29d04
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -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