summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-02-18 14:23:50 -0800
committerFranck Cuny <franck.cuny@gmail.com>2018-02-18 14:23:50 -0800
commitafd447cb317c54201e7162af22c2f2e252e8afd8 (patch)
tree13c13a7e6381163eb778065af9e75d7e67fe398d /emacs.d
parent[emacs] Set font to DejaVu (diff)
downloademacs.d-afd447cb317c54201e7162af22c2f2e252e8afd8.tar.gz
[Emacs] Set different font size for Linux and darwin.
We want a smaller font on Linux.
Diffstat (limited to '')
-rw-r--r--emacs.d/lib/settings.el4
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)