summaryrefslogtreecommitdiff
path: root/eww-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-01-08 22:38:52 +0800
committerJSDurand <mmemmew@gmail.com>2023-01-08 22:38:52 +0800
commit9329125383e2329ac75432a62f5a81d50db4d78b (patch)
tree61be9ad004effc31964a8c4eeb78e81c91c8ddb9 /eww-conf.el
parentd9fba24319ad36994671846e5e29e1c40ae137a5 (diff)
bookmark: add types to handlers and use that for grouping
* bookmark-conf.el ("durand"): Use types of bookmark handlers as group headings. (pdf-view-bookmark-jump-handler): Give it the type "PDF". (durand-external-jump): Give it the type "External". * eww-conf.el: Give the handler for EWW the type "EWW".
Diffstat (limited to 'eww-conf.el')
-rw-r--r--eww-conf.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/eww-conf.el b/eww-conf.el
index dae5a7a..d6d8bd2 100644
--- a/eww-conf.el
+++ b/eww-conf.el
@@ -484,6 +484,9 @@ Just a temporary advice to override `pop-to-buffer'."
;; NOTE: It works with jumping in another window.
+;; This is added in Emacs-29.
+(put 'durand-eww-bookmark-jump 'bookmark-handler-type "EWW")
+
;;;###autoload
(defun durand-eww-bookmark-jump (bookmark)
"Jump to BOOKMARK in EWW.