summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-10-12 15:12:17 +0100
committerAlan Pearce2013-10-12 15:12:17 +0100
commitff17a94532bbd44709db6b71d6d9f67de39e8a89 (patch)
tree0e0b8e03202ee63bde39ae5ade10df6b9bb565e0 /emacs
parentbed8fd45eda6788e315b5ee47e09fa9e7291b63c (diff)
downloadnixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.lz
nixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.zst
nixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.zip
Emacs: workaround issue setting variable-pitch fonts on OSX
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 96a2cf64..6b8a253d 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)))))))))