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-chats.el | 9 ++++----- custom/jao-custom-notmuch.el | 16 +++++----------- 2 files changed, 9 insertions(+), 16 deletions(-) (limited to 'custom') 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) -- cgit v1.2.3