summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'custom/jao-custom-notmuch.el')
-rw-r--r--custom/jao-custom-notmuch.el14
1 files changed, 5 insertions, 9 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 8b8cd58..0cb60e7 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -33,10 +33,10 @@
(defun jao-notmuch-notify ()
(interactive)
(let* ((cnts (notmuch-hello-query-counts jao-notmuch-minibuffer-queries))
- (mc (jao-d-l
+ (mc (jao-when-darwin
(when jao-notmuch-mac-mail-badge
- (jao-mac-app-badge jao-notmuch-mac-mail-badge))
- 0))
+ (jao-mac-app-badge jao-notmuch-mac-mail-badge)
+ 0)))
(cnts (if mc (cons `(:name "" :count ,(format "[%s]" mc)) cnts) cnts)))
(setq jao-notmuch-minibuffer-string (mapconcat #'jao-notmuch--qstr cnts " "))
(when jao-notmuch-mac-hammerspoon (jao-notmuch-hammerspoon))
@@ -260,7 +260,6 @@
(let (;; (d `(:foreground ,(face-attribute 'jao-themes-dimm :foreground)))
(e `(:foreground ,(face-attribute 'jao-themes-error :foreground))))
`(("attachment" "⧺")
- ("bigml" "b")
("deleted" "⛒" (propertize tag 'face '(:underline nil ,@e)))
("feeds" "f")
("flagged" "✓")
@@ -594,10 +593,7 @@
(advice-remove 'notmuch-tree #'jao-notmuch-before-tree)
(advice-remove 'notmuch-tree-quit #'jao-notmuch-after-tree-quit))
- (when jao-notmuch-enabled
- ;; (jao-d-l (jao-notmuch-use-one-pane) (jao-notmuch-use-two-panes))
- (jao-notmuch-use-two-panes)
- )
+ (when jao-notmuch-enabled (jao-notmuch-use-two-panes))
:bind (:map notmuch-tree-mode-map
(("b" . jao-notmuch-browse-urls)
@@ -721,7 +717,7 @@
(defvar jao-consult-notmuch-history nil)
- (defvar jao-mailbox-folders '("bigml" "jao"))
+ (defvar jao-mailbox-folders '("jao"))
(defun jao-consult-notmuch-folder (&optional tree folder)
(interactive "P")