summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-07-10 02:24:39 +0100
committerjao <jao@gnu.org>2021-07-10 02:24:39 +0100
commit963a4477eb40881964d71a941c74d036d258e71d (patch)
tree2555e42c3dec6dbcd70ed069b3f3f4c793c6f9fa
parent5adea7669935fc661c8e2d7ec2fa57c4e505d8cf (diff)
downloadelibs-963a4477eb40881964d71a941c74d036d258e71d.tar.gz
elibs-963a4477eb40881964d71a941c74d036d258e71d.tar.bz2
wee tweaks
-rw-r--r--lib/eos/jao-minibuffer.el3
-rw-r--r--w3m.org41
2 files changed, 23 insertions, 21 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index 42b7ed6..794ffd4 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -103,6 +103,7 @@
(defvar-local w3m-current-title nil)
(defvar-local eww-data nil)
+(defvar-local jao-notmuch--tree-buffer nil)
(defvar circe-chat-target nil)
(setq-default mode-line-position
@@ -117,8 +118,8 @@
mode-line-buffer-identification)
((derived-mode-p 'circe-channel-mode)
(format "%s [%d]" (buffer-name) (length (circe-channel-nicks))))
+ (jao-notmuch--tree-buffer (buffer-name jao-notmuch--tree-buffer))
((not (null eww-data)) (plist-get eww-data :title))
- (w3m-current-title)
(t "%b")))
"%]"
(:propertize " %*%+ " face jao-themes-warning)
diff --git a/w3m.org b/w3m.org
index 6dec1aa..ef1b105 100644
--- a/w3m.org
+++ b/w3m.org
@@ -73,26 +73,27 @@
#+end_src
* Narrowing
#+begin_src emacs-lisp
- (with-eval-after-load "consult"
- (defvar jao-consult-w3m-buffer-history nil)
- (defvar jao-consult-w3m-source
- (list :name "w3m buffer"
- :category 'w3m-buffer
- :hidden t
- :narrow (cons ?w "w3m")
- :annotate (lambda (b) (when b (get-text-property 0 'url b)))
- :history 'jao-consult-w3m-buffer-history
- :action (lambda (b)
- (jao-afio--goto-www)
- (switch-to-buffer (get-text-property 0 'buffer b)))
- :items (lambda ()
- (seq-map (lambda (b)
- (with-current-buffer b
- (propertize (or w3m-current-title "")
- 'buffer b
- 'url w3m-current-url)))
- (w3m-list-buffers)))))
- (jao-consult-add-buffer-source 'jao-consult-w3m-source "Web" ?w))
+ (with-eval-after-load "w3m"
+ (with-eval-after-load "consult"
+ (defvar jao-consult-w3m-buffer-history nil)
+ (defvar jao-consult-w3m-source
+ (list :name "w3m buffer"
+ :category 'w3m-buffer
+ :hidden t
+ :narrow (cons ?w "w3m")
+ :annotate (lambda (b) (when b (get-text-property 0 'url b)))
+ :history 'jao-consult-w3m-buffer-history
+ :action (lambda (b)
+ (jao-afio--goto-www)
+ (switch-to-buffer (get-text-property 0 'buffer b)))
+ :items (lambda ()
+ (seq-map (lambda (b)
+ (with-current-buffer b
+ (propertize (or w3m-current-title "")
+ 'buffer b
+ 'url w3m-current-url)))
+ (w3m-list-buffers)))))
+ (jao-consult-add-buffer-source 'jao-consult-w3m-source "Web" ?w)))
#+end_src
* Package
#+begin_src emacs-lisp