From 855db2c9c439e9be1c66520f44615369b648a914 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 1 Dec 2026 12:04:14 +0000 Subject: nits --- custom/jao-custom-notmuch.el | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'custom/jao-custom-notmuch.el') diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el index b1f2446..37d56b2 100644 --- a/custom/jao-custom-notmuch.el +++ b/custom/jao-custom-notmuch.el @@ -30,6 +30,10 @@ (propertize (format "%s%s" (plist-get c :name) (plist-get c :count)) 'face (or (plist-get c :face) 'jao-themes-dimm))) +(when jao-notmuch-enabled + (jao-minibuffer-add-variable 'jao-notmuch-minibuffer-string -20)) + +;;; notifications (defun jao-notmuch-notify () (interactive) (let* ((cnts (notmuch-hello-query-counts jao-notmuch-minibuffer-queries)) @@ -42,16 +46,6 @@ (when jao-notmuch-mac-hammerspoon (jao-notmuch-hammerspoon)) (jao-minibuffer-refresh))) -(defun jao-notmuch-notify-and-update (&optional first agenda) - (jao-notmuch-notify) - (with-current-buffer "*notmuch-hello*" - (notmuch-hello-update) - (when (and first (not (widget-at))) (jao-notmuch-hello-first)) - (when agenda (jao-notmuch-refresh-agenda)))) - -(when jao-notmuch-enabled - (jao-minibuffer-add-variable 'jao-notmuch-minibuffer-string -20)) - ;;; saved searches (defvar jao-notmuch-title-face 'jao-themes-f00) (defvar jao-notmuch-alt-title-face '(:foreground "grey60")) @@ -463,7 +457,7 @@ (defun jao-notmuch-after-tree-quit (&optional _both) (when (not (derived-mode-p 'notmuch-tree-mode 'notmuch-hello-mode)) (jump-to-register ?G)) - (jao-notmuch-notify-and-update t)) + (jao-notmuch-refresh-hello t)) (defun jao-notmuch-tree--sentinel (proc) (when (eq (process-status proc) 'exit) -- cgit v1.2.3