Set bookmark type for URLs

Just for display, nothing else should change with this (yet).
This commit is contained in:
Daniel Borchmann 2025-02-22 18:19:29 +01:00
parent e32a67d666
commit 35cc0080d5
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -854,6 +854,9 @@ it."
"Extract filename from bookmark BMK and apply `browse-url' to it." "Extract filename from bookmark BMK and apply `browse-url' to it."
(browse-url (bookmark-get-filename bmk))) (browse-url (bookmark-get-filename bmk)))
;; https://takeonrules.com/2024/12/17/extending-built-in-emacs-bookmark-package/
(put 'db/bookmark-browse-url 'bookmark-handler-type "URL")
(defun db/bookmark-system-open (bmk) (defun db/bookmark-system-open (bmk)
"Extract filename from bookmark BMK and apply `db/system-open' to it." "Extract filename from bookmark BMK and apply `db/system-open' to it."
(db/system-open (bookmark-get-filename bmk))) (db/system-open (bookmark-get-filename bmk)))