all repos — nixfiles @ 6445538807f6a08316eed74fbee4c1daca188b49

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

Emacs: Fix ap/set-fonts argument errors
Alan Pearce alan@alanpearce.co.uk
Sat, 25 Jun 2016 22:51:13 +0200
commit

6445538807f6a08316eed74fbee4c1daca188b49

parent

e5fd4b92bca4b75c622351d1147ade8777cb3ee7

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

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -175,14 +175,14 @@ (defun ap/set-fonts-according-to-system ()         (interactive)
         (cond
          ((eq window-system 'w32)
-          (ap/set-fonts "Consolas" 10 "Segoe UI" 11))
+          (ap/set-fonts "Consolas" 10 "Segoe UI" 11 t))
          ((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)
               (ap/set-fonts "Anonymous Pro" 11 "Lucida Grande" 12 nil))))
          ((eq window-system 'x)
-          (ap/set-fonts "Source Code Pro" 10 "Input Sans" 10))))
+          (ap/set-fonts "Source Code Pro" 10 "Input Sans" 10 t))))
 
       (ap/set-fonts-according-to-system))
 #+END_SRC