summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
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)))))))))