diff options
author | Alan Pearce | 2013-10-12 15:12:17 +0100 |
---|---|---|
committer | Alan Pearce | 2013-10-12 15:12:17 +0100 |
commit | ff17a94532bbd44709db6b71d6d9f67de39e8a89 (patch) | |
tree | 0e0b8e03202ee63bde39ae5ade10df6b9bb565e0 | |
parent | bed8fd45eda6788e315b5ee47e09fa9e7291b63c (diff) | |
download | nixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.lz nixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.tar.zst nixfiles-ff17a94532bbd44709db6b71d6d9f67de39e8a89.zip |
Emacs: workaround issue setting variable-pitch fonts on OSX
-rw-r--r-- | emacs/init.el | 2 |
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))))))))) |