Commit 290aa78f892f

Vincent Demeester <vincent@sbr.pm>
2018-09-07 17:38:30
Conditionnal font-height :)
By default it's 110, but on shikoku it's 140 (mainly because of HiDPI) Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cac6b5d
Changed files (1)
lisp/vde-style.el
@@ -3,12 +3,16 @@
 ;; Fonts used:
 ;; - Iosevka (https://github.com/be5invis/Iosevka)
 ;; - Fira Sans (https://github.com/mozilla/Fira/)
+(setq font-height 110)
+(when (string= system-name "shikoku")
+  (setq font-height 140))
+
 (set-face-attribute 'default nil
 		    :family "Fira Code"
-                    :height 110)
+                    :height font-height)
 (set-face-attribute 'variable-pitch nil
                     :family "Fira Sans"
-                    :height 110
+                    :height font-height
                     :weight 'regular)
 
 ;;; Utilities and key bindings
@@ -17,10 +21,10 @@
   (interactive)
   (set-face-attribute 'default nil
 		      :family "Fira Code"
-                      :height 110)
+                      :height font-heigh)
   (set-face-attribute 'variable-pitch nil
                       :family "Fira Sans"
-                      :height 110
+                      :height font-height
                       :weight 'regular))
 
 (bind-key "C-c t f" #'mu-reset-fonts)