From 8e71158b6be0a04ade95807c3be36ddfa71dd674 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 22 May 2022 00:51:27 +0100 Subject: wee refactorings --- notmuch.org | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'notmuch.org') 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") -- cgit v1.2.3