all repos — archive/dotfiles @ c3b82dddef8aad525a9bcb9c8d9d620e20e992c0

Superseded by nixfiles

Emacs: simplify macOS font setup
Alan Pearce alan@alanpearce.eu
Thu, 29 Nov 2018 20:32:38 +0100
commit

c3b82dddef8aad525a9bcb9c8d9d620e20e992c0

parent

c56456df20ffb52e9516345204be50544110c06d

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -190,9 +190,7 @@ (ap/set-fonts "Liberation Mono" 11 "Segoe UI" 11 t))      ((or (eq window-system 'mac)
           (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 "Fira Code" 14 "Lucida Grande" 14 t nil)
-          (ap/set-fonts "Monoid" 12 "Helvetica Neue" 12 t 0.1))))
+        (ap/set-fonts "SF Mono" 12 "Helvetica Neue" 12 t 0.1)))
      ((and (eq window-system 'x)
            (eq system-type 'gnu/linux/windows))
       (ap/set-fonts "Noto Mono" 12 "Sans" 12 nil)))))