summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-10-12 15:12:17 +0100
committerAlan Pearce2013-10-12 15:12:17 +0100
commitff17a94532bbd44709db6b71d6d9f67de39e8a89 (patch)
tree0e0b8e03202ee63bde39ae5ade10df6b9bb565e0
parentbed8fd45eda6788e315b5ee47e09fa9e7291b63c (diff)
downloaddotfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.lz
dotfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.zst
dotfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.zip
Emacs: workaround issue setting variable-pitch fonts on OSX
-rw-r--r--emacs/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 96a2cf6..6b8a253 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -148,7 +148,7 @@ Values: `desktop', `server', `laptop'")
            (default-font (concat mono-face "-" (number-to-string font-size))))
         (when mono-face
           (add-to-list 'default-frame-alist `(font . ,default-font)))
-        (when variable-face
+        (when (and variable-face (display-graphic-p))
           (set-face-font 'variable-pitch (concat variable-face "-"
                                                  (number-to-string (1+ font-size)))))))))