all repos — nixfiles @ 5216f41ddf542f3cebb530730b56bfb4acb9e7a8

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

Emacs: Don't set Linux fonts on Windows/WSL/X11

Alan Pearce
commit

5216f41ddf542f3cebb530730b56bfb4acb9e7a8

parent

3dd9fad897305f1ed6edc2a880ffad2c888ae9d9

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -220,7 +220,8 @@ (let ((displays (string-to-number (shell-command-to-string "system_profiler SPDisplaysDataType | grep \"Online: Yes\" | wc -l"))))
(if (eq displays 1) (ap/set-fonts "Lekton" 20 "Lucida Grande" 16 t) (ap/set-fonts "Monaco" 14 "Lucida Grande" 14 nil 0.1)))) - ((eq window-system 'x) + ((and (eq window-system 'x) + (not (getenv "windows"))) (set-fontset-font "fontset-default" 'unicode (font-spec :name "Terminus" :size 14)) (ap/set-fonts "Fixed" 14 "Lucida" 14 nil))))