aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2021-05-04 11:21:52 -0700
committerRaul Benencia <rul@kalgan.cc>2021-05-04 11:21:52 -0700
commited394ccf54c5ae2c8a507c72f2bba59af28e6b95 (patch)
tree592fc874c256e1ef1b14d24c102daa9e4e6dbd38
parent6f739608bef901aa159dbe58021b35fe67534440 (diff)
fonts
-rw-r--r--.emacs.local.d/general.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/.emacs.local.d/general.el b/.emacs.local.d/general.el
index ced9332..4bd4992 100644
--- a/.emacs.local.d/general.el
+++ b/.emacs.local.d/general.el
@@ -167,3 +167,23 @@
;; Mutt support.
(setq auto-mode-alist (append '((".*tmp/mutt.*" . mail-mode)) auto-mode-alist))
(setq auto-mode-alist (append '((".*tmp/neomutt.*" . mail-mode)) auto-mode-alist))
+
+;; Fonts
+;; Set the font face based on platform
+(pcase system-type
+ ((or 'gnu/linux 'windows-nt 'cygwin)
+ (set-face-attribute 'default nil
+ :font "JetBrains Mono"
+ :weight 'light))
+ ('darwin (set-face-attribute 'default nil :font "Fira Mono" :height 170)))
+
+;; Set the fixed pitch face
+(set-face-attribute 'fixed-pitch nil
+ :font "JetBrains Mono"
+ :weight 'light)
+
+;; Set the variable pitch face
+(set-face-attribute 'variable-pitch nil
+ ;; :font "Cantarell"
+ :font "JetBrains Mono"
+ :weight 'light)
nihil fit ex nihilo