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 | |
| parent | bca51e1655d5a305745b7826cf5134f37f6a960a (diff) | |
| download | elibs-855db2c9c439e9be1c66520f44615369b648a914.tar.gz elibs-855db2c9c439e9be1c66520f44615369b648a914.tar.bz2 | |
nits
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/jao-custom-chats.el | 9 | ||||
| -rw-r--r-- | custom/jao-custom-notmuch.el | 16 |
2 files changed, 9 insertions, 16 deletions
diff --git a/custom/jao-custom-chats.el b/custom/jao-custom-chats.el index 57af82f..1d0899f 100644 --- a/custom/jao-custom-chats.el +++ b/custom/jao-custom-chats.el @@ -141,13 +141,12 @@ (defun jao-chats-open-afio () (jao-afio-trisect) - (when (y-or-n-p "telegram? ") + (when (y-or-n-p "open chats? ") (telega) - (other-buffer)) - (when (y-or-n-p "mastodon? ") + (other-buffer) (mastodon) - (other-buffer)) - (when (y-or-n-p "irc? ") (circe "Libera Chat"))) + (other-buffer) + (circe "Libera Chat"))) (setq jao-afio-open-chats #'jao-chats-open-afio) 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) |
