diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-02-18 14:23:50 -0800 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-02-18 14:23:50 -0800 |
commit | afd447cb317c54201e7162af22c2f2e252e8afd8 (patch) | |
tree | 13c13a7e6381163eb778065af9e75d7e67fe398d | |
parent | [emacs] Set font to DejaVu (diff) | |
download | emacs.d-afd447cb317c54201e7162af22c2f2e252e8afd8.tar.gz |
[Emacs] Set different font size for Linux and darwin.
We want a smaller font on Linux.
-rw-r--r-- | emacs.d/lib/settings.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs.d/lib/settings.el b/emacs.d/lib/settings.el index 1bd2c58..83fdd84 100644 --- a/emacs.d/lib/settings.el +++ b/emacs.d/lib/settings.el @@ -88,7 +88,9 @@ (global-hl-line-mode 1) ;; Set default font. -(set-face-attribute 'default nil :font "DejaVu Sans Mono" :height 130 :weight 'normal :width 'normal) +(if (string-equal system-type "darwin") + (set-face-attribute 'default nil :font "DejaVu Sans Mono" :height 130 :weight 'normal :width 'normal) + (set-face-attribute 'default nil :font "DejaVu Sans Mono" :height 120 :weight 'normal :width 'normal)) ;; no bell (setq visible-bell nil) |