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
commit7407ebeae112462104c8c7855d65cf621c88ab94 (patch)
tree063adeab37ff1bb03fe55761e8d8209cbbe8dc20 /modules
parent09a051a71fb3af587de8ac25a636db409057398d (diff)
downloaddotemacs-7407ebeae112462104c8c7855d65cf621c88ab94.tar.gz
dotemacs-7407ebeae112462104c8c7855d65cf621c88ab94.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."