Set bookmark type for URLs
Just for display, nothing else should change with this (yet).
This commit is contained in:
parent
e32a67d666
commit
35cc0080d5
@ -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)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user