aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2023-03-17 15:54:23 -0500
committershoshin <shoshin@cicadas.surf>2023-03-17 15:54:23 -0500
commit01c01da513aa9abab8fbd048ba97cd72e6cd31fd (patch)
tree7f1a6d6482d32276bb0743426d0bceff2948e40f
parent7111b92461f06dfaab4d8f33787f73b1b9313c06 (diff)
Add: better handling of setting default frame font
-rw-r--r--shoshimacs.el6
-rw-r--r--shoshimacs.org9
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