summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-notmuch.el31
1 files changed, 18 insertions, 13 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 2a48e3b..524a767 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -258,9 +258,9 @@
(use-package jao-notmuch :demand t)
;;; hello
-;; (defun jao-notmuch-hello--header () (insert " "))
-;; (when (display-graphic-p)
-;; (add-to-list 'notmuch-hello-sections 'jao-notmuch-hello--header))
+(defun jao-notmuch-hello--header () (insert " "))
+(when (display-graphic-p)
+ (add-to-list 'notmuch-hello-sections 'jao-notmuch-hello--header))
(add-to-list 'notmuch-hello-sections 'notmuch-hello-insert-alltags t)
@@ -318,6 +318,11 @@
notmuch-show-logo nil
notmuch-show-empty-saved-searches nil)
+ (add-to-list 'display-buffer-alist
+ '("\\*notmuch-hello\\*"
+ (display-buffer-reuse-window)
+ (body-function . (lambda (w) (set-window-margins w 1)))))
+
:hook ((notmuch-hello-refresh . jao-notmuch-notify))
:config
@@ -325,16 +330,16 @@
(add-hook 'jao-afio-switch-hook #'jao-notmuch-refresh-hello))
:bind (:map notmuch-hello-mode-map
- (("a" . jao-notmuch-refresh-agenda)
- ("g" . jao-notmuch-refresh-hello)
- ("j" . jao-notmuch-jump-search)
- ("n" . jao-notmuch-hello-next)
- ("p" . widget-backward)
- ("SPC" . widget-button-press)
- ("/" . consult-notmuch)
- ("." . jao-notmuch-hello-first)
- ("[" . jao-notmuch-hello-prev-section)
- ("]" . jao-notmuch-hello-next-section))))
+ (("a" . jao-notmuch-refresh-agenda)
+ ("g" . jao-notmuch-refresh-hello)
+ ("j" . jao-notmuch-jump-search)
+ ("n" . jao-notmuch-hello-next)
+ ("p" . widget-backward)
+ ("SPC" . widget-button-press)
+ ("/" . consult-notmuch)
+ ("." . jao-notmuch-hello-first)
+ ("[" . jao-notmuch-hello-prev-section)
+ ("]" . jao-notmuch-hello-next-section))))
;;; show
(defun jao-notmuch-open-enclosure (add)