all repos — nixfiles @ dd078ae0c57ff1ba84060568864ed23ec420672e

System and user configuration, managed by nix and home-manager

Emacs: Use `window-system` for all font checks

Alan Pearce
commit

dd078ae0c57ff1ba84060568864ed23ec420672e

parent

c48b283fcc5fbbc083de41b8f15728b93a68f9af

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -175,7 +175,7 @@ (defun ap/set-fonts-according-to-system ()
(cond ((eq window-system 'w32) (ap/set-fonts "Consolas" 10 "Segoe UI" 11)) - ((eq system-type 'darwin) + ((eq window-system 'ns) (let ((displays (string-to-number (shell-command-to-string "system_profiler SPDisplaysDataType | grep \"Online: Yes\" | wc -l")))) (if (eq displays 1) (ap/set-fonts "PT Mono" 12 "Lucide Grande" 12 t)