summaryrefslogtreecommitdiffhomepage
path: root/w3m.org
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 /w3m.org
parent5adea7669935fc661c8e2d7ec2fa57c4e505d8cf (diff)
downloadelibs-963a4477eb40881964d71a941c74d036d258e71d.tar.gz
elibs-963a4477eb40881964d71a941c74d036d258e71d.tar.bz2
wee tweaks
Diffstat (limited to 'w3m.org')
-rw-r--r--w3m.org41
1 files changed, 21 insertions, 20 deletions
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