aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 21:29:24 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 21:29:24 -0500
commit4682c5fcf5b5fcf0fce95622a178a23bea04b10e (patch)
tree60ca47fadef8fe557c1898ce5829183675029a2e /modules
parent4120ce9173a1a05c0a36161782361365582ab4da (diff)
downloaddotemacs-4682c5fcf5b5fcf0fce95622a178a23bea04b10e.tar.gz
dotemacs-4682c5fcf5b5fcf0fce95622a178a23bea04b10e.zip
fix(eww): quick-add bookmarks to the default store, not a new dir
cj/eww-bookmark-quick-add let-bound eww-bookmarks-directory to a path and created a directory there, so B (eww-list-bookmarks) read an unreadable path and quick-added bookmarks vanished after restart. Use the default store both commands share.
Diffstat (limited to 'modules')
-rw-r--r--modules/eww-config.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/eww-config.el b/modules/eww-config.el
index 066fae989..a41a9a76e 100644
--- a/modules/eww-config.el
+++ b/modules/eww-config.el
@@ -119,11 +119,8 @@
(unless (derived-mode-p 'eww-mode)
(user-error "Not in EWW buffer"))
(when-let ((title (plist-get eww-data :title)))
- (let ((eww-bookmarks-directory (expand-file-name "eww-bookmarks" user-emacs-directory)))
- (unless (file-exists-p eww-bookmarks-directory)
- (make-directory eww-bookmarks-directory t))
- (eww-add-bookmark)
- (message "Bookmarked: %s" title))))
+ (eww-add-bookmark)
+ (message "Bookmarked: %s" title)))
(defun cj/eww-copy-url ()
"Copy the current EWW URL to clipboard."