From 35cc0080d581a48bb750f58e8ae4f89ebc56dc2a Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 22 Feb 2025 18:19:29 +0100 Subject: [PATCH] Set bookmark type for URLs Just for display, nothing else should change with this (yet). --- site-lisp/db-utils.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 45dff01..127b5d0 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -854,6 +854,9 @@ it." "Extract filename from bookmark BMK and apply `browse-url' to it." (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) "Extract filename from bookmark BMK and apply `db/system-open' to it." (db/system-open (bookmark-get-filename bmk)))