From ff17a94532bbd44709db6b71d6d9f67de39e8a89 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Oct 2013 15:12:17 +0100 Subject: Emacs: workaround issue setting variable-pitch fonts on OSX --- emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs') 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))))))))) -- cgit 1.4.1