diff options
author | shoshin <shoshin@cicadas.surf> | 2023-03-17 15:54:23 -0500 |
---|---|---|
committer | shoshin <shoshin@cicadas.surf> | 2023-03-17 15:54:23 -0500 |
commit | 01c01da513aa9abab8fbd048ba97cd72e6cd31fd (patch) | |
tree | 7f1a6d6482d32276bb0743426d0bceff2948e40f | |
parent | 7111b92461f06dfaab4d8f33787f73b1b9313c06 (diff) |
Add: better handling of setting default frame font
-rw-r--r-- | shoshimacs.el | 6 | ||||
-rw-r--r-- | shoshimacs.org | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/shoshimacs.el b/shoshimacs.el index bee6420..b3071e6 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -354,8 +354,10 @@ (package-install 'darkroom) -(let ((size (if (or (equal (system-name) "zebes") (equal (system-name) "ridley")) 16 12))) - (set-frame-font (format "Victor Mono-%s" size))) +(let* ((size (if (or (equal (system-name) "zebes") (equal (system-name) "ridley")) 16 12)) + (font (format "Victor Mono-%s" size))) + (add-to-list 'default-frame-alist + `(font . ,font))) (global-hl-line-mode t) diff --git a/shoshimacs.org b/shoshimacs.org index 41099e3..9bf00c4 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -1125,15 +1125,16 @@ depending on the window layout currently in use. (package-install 'darkroom) #+end_src -** Fonts +** Fonts For code, I've grown fond of Victor Mono. #+begin_src emacs-lisp - (let ((size (if (or (equal (system-name) "zebes") (equal (system-name) "ridley")) 16 12))) - (set-frame-font (format "Victor Mono-%s" size))) + (let* ((size (if (or (equal (system-name) "zebes") (equal (system-name) "ridley")) 16 12)) + (font (format "Victor Mono-%s" size))) + (add-to-list 'default-frame-alist + `(font . ,font))) #+end_src - *** COMMENT Attempt to install the font via Emacs, url.el and ~make-process~ in the end, this "works" but isn't very useful. the font cache needs to be updated |