From d2a890040c5662c0cb2e14d213c22fbadd10b613 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Wed, 9 Apr 2025 21:09:42 -0700 Subject: [PATCH] Disable font stuff in terminal --- emacs/init.el | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index a1e514c..55a0ab7 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -433,18 +433,19 @@ (height . 60))) ;;;; Fonts -(setq my/font-candidates - '("FiraCode Nerd Font Mono" "Fira Code" "Menlo" "Deja Vu Sans")) -(defvar my/font - (seq-find #'x-list-fonts my/font-candidates) - "The default font to use.") -(defvar my/font-size - (if ON-MAC - 14 - 12) - "The default font size to use.") -(modify-all-frames-parameters - `((font . ,(concat my/font "-" (number-to-string my/font-size))))) +(when window-system + (setq my/font-candidates + '("FiraCode Nerd Font Mono" "Fira Code" "Menlo" "Deja Vu Sans")) + (defvar my/font + (seq-find #'x-list-fonts my/font-candidates) + "The default font to use.") + (defvar my/font-size + (if ON-MAC + 14 + 12) + "The default font size to use.") + (modify-all-frames-parameters + `((font . ,(concat my/font "-" (number-to-string my/font-size)))))) ;;;; Hide clutter (setq inhibit-startup-message t