From 809622d98206670c9aac2c4c522111503c79e07e Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 9 Feb 2019 11:45:45 +0100 Subject: [PATCH] [Utils] Small helper to add eww bookmarks --- site-lisp/db-utils.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 0c70afe..5a9ce6b 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -574,6 +574,11 @@ it. The bookmarks will finally be sorted by their name." (interactive "sURL: \nsName: ") (db/bookmark-add-with-handler name url #'browse-url)) +(defun db/bookmark-add-eww (url name) + "Add NAME as bookmark to URL to be opened with `eww’." + (interactive "sURL: \nsName: ") + (db/bookmark-add-with-handler name url #'eww)) + ;;; End