diff options
author | jao <jao@gnu.org> | 2022-05-22 00:51:27 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-05-22 00:51:27 +0100 |
commit | 8e71158b6be0a04ade95807c3be36ddfa71dd674 (patch) | |
tree | 3d45dc9a071f817a0326f833ca7f4ea9f13a097d /notmuch.org | |
parent | 843c9aa4edf0f7eaa7807dd7bfc6735c40d19024 (diff) | |
download | elibs-8e71158b6be0a04ade95807c3be36ddfa71dd674.tar.gz elibs-8e71158b6be0a04ade95807c3be36ddfa71dd674.tar.bz2 |
wee refactorings
Diffstat (limited to 'notmuch.org')
-rw-r--r-- | notmuch.org | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/notmuch.org b/notmuch.org index 89b30fb..f4756f8 100644 --- a/notmuch.org +++ b/notmuch.org @@ -451,6 +451,13 @@ (funcall (if ext browse-url-secondary-browser-function #'browse-url) url))) + (defun jao-notmuch-adjust-tree-fonts (&optional family) + (let ((fg (face-attribute 'jao-themes-dimm :foreground)) + (family (or family "Source Code Pro"))) + (dolist (f '(notmuch-tree-match-tree-face + notmuch-tree-no-match-tree-face)) + (set-face-attribute f nil :family family :foreground fg)))) + (use-package notmuch-tree :init (setq notmuch-tree-result-format @@ -473,10 +480,8 @@ :config - (let ((fg (face-attribute 'jao-themes-dimm :foreground))) - (dolist (f '(notmuch-tree-match-tree-face - notmuch-tree-no-match-tree-face)) - (set-face-attribute f nil :family "Source Code Pro" :foreground fg))) + (when (string-prefix-p "Hack" jao-themes-default-face) + (jao-notmuch-adjust-tree-fonts)) (jao-notmuch-tree-setup "T") |