summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-notmuch.el')
-rw-r--r--lib/net/jao-notmuch.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 0809d7b..db23bc1 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -402,7 +402,8 @@
(tb (seq-find (lambda (b)
(with-current-buffer b
(and (derived-mode-p 'notmuch-tree-mode) b)))
- (buffer-list))))
+ (buffer-list)))
+ (subject (propertize subject 'face 'message-header-subject)))
`((:eval
(jao-notmuch--format-header-line ,(buffer-name tb) ,cb ,subject)))
(concat " " subject)))
@@ -545,11 +546,15 @@
(t " "))))
(provide 'jao-notmuch)
+
;;; bars
+(defvar jao-notmuch-bar-max 188)
+
(defun jao-notmuch-hbar (margin)
- (widget-insert (propertize (make-string (- (window-width) margin) ?—)
- 'face '(:foreground "grey80")))
+ (let ((w (- (min (window-width) jao-notmuch-bar-max) margin)))
+ (widget-insert (propertize (make-string w ?—) 'face '(:foreground "grey80"))))
(newline))
+
;;; org links
(defun jao-notmuch-id-file-name (id)
(let ((cmd (format "notmuch search --output=files id:%s" id)))