diff options
| author | jao <jao@gnu.org> | 2026-12-01 12:04:14 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-12-01 12:04:14 +0000 |
| commit | 855db2c9c439e9be1c66520f44615369b648a914 (patch) | |
| tree | ce8623ffc3896fbf2acf6b4502ab7aa76c299ff1 /custom/jao-custom-notmuch.el | |
| parent | bca51e1655d5a305745b7826cf5134f37f6a960a (diff) | |
| download | elibs-855db2c9c439e9be1c66520f44615369b648a914.tar.gz elibs-855db2c9c439e9be1c66520f44615369b648a914.tar.bz2 | |
nits
Diffstat (limited to 'custom/jao-custom-notmuch.el')
| -rw-r--r-- | custom/jao-custom-notmuch.el | 16 |
1 files changed, 5 insertions, 11 deletions
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) |
