From ed394ccf54c5ae2c8a507c72f2bba59af28e6b95 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Tue, 4 May 2021 11:21:52 -0700 Subject: fonts --- .emacs.local.d/general.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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) -- cgit v1.2.3