summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--themes.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/modules/bd--themes.el')
-rw-r--r--.config/emacs/modules/bd--themes.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/emacs/modules/bd--themes.el b/.config/emacs/modules/bd--themes.el
index 1372ea4..3433e3f 100644
--- a/.config/emacs/modules/bd--themes.el
+++ b/.config/emacs/modules/bd--themes.el
@@ -1,6 +1,27 @@
;; -*- lexical-binding: t; -*-
+;;;; variable-pitch fonts
+(defun bd/enable-variable-pitch-exempt ()
+ "Text modes to exempt from variable pitch fonts."
+ (unless (derived-mode-p 'latex-mode 'mhtml-mode 'nxml-mode 'yaml-mode)
+ (variable-pitch-mode 1)))
+
+(defvar bd/enable-variable-pitch-in-hooks
+ '(text-mode-hook)
+ "List of hook symbols to add `variable-pitch-mode'
+to.")
+
+(mapc
+ (lambda (hook)
+ (add-hook hook #'bd/enable-variable-pitch-exempt))
+ bd/enable-variable-pitch-in-hooks)
+
+(set-face-attribute 'variable-pitch nil
+ :family "Dejavu Serif")
+
+
+;;;; colors
(defun modus-themes-custom-faces ()
(modus-themes-with-colors
(custom-set-faces
@@ -23,6 +44,7 @@
(setopt modus-themes-italic-constructs t
modus-themes-bold-constructs t
+ modux-themes-mixed-fonts t
modus-themes-hl-line '(accented)
modus-themes-subtle-line-numbers t
modus-themes-paren-match '(intense)