aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.local.d')
-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