Use default mechanism to store URL bookmarks directly after creation

Nicer :)
This commit is contained in:
Daniel Borchmann 2025-02-22 18:23:34 +01:00
parent 35cc0080d5
commit 795fcde3b8
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
2 changed files with 3 additions and 3 deletions

View File

@ -2353,7 +2353,8 @@ eventuelly be set to nil, however)."
(use-package bookmark
:init (setq bookmark-default-file (expand-file-name "bookmarks" emacs-d-userdata)
bookmark-menu-confirm-deletion t))
bookmark-menu-confirm-deletion t
bookmark-save-flag 1))
(use-package dumb-jump
:commands (dumb-jump-xref-activate)

View File

@ -847,8 +847,7 @@ it."
(let ((new-record `((filename . ,location)
(handler . ,handler))))
(bookmark-update-last-modified new-record)
(bookmark-store name new-record nil)
(bookmark-save)))
(bookmark-store name new-record nil)))
(defun db/bookmark-browse-url (bmk)
"Extract filename from bookmark BMK and apply `browse-url' to it."