|
From: | Emanuel Berg |
Subject: | Re: EWW func add url under point as bookmark |
Date: | Fri, 15 Apr 2022 16:17:49 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Alex wrote: > (defun eww-bookmark-add (url title) > "Bookmark url with a title." "... URL with a TITLE." > (defun eww-bookmark-url-under-point (title) > "Bookmark url under point" "... calling it TITLE"? > (interactive (list (read-string "Bookmark title: "))) (interactive "sTitle: ") > (let ((str-url (thing-at-point 'url))) > (eww-bookmark-add str-url title))) Maybe should check if `thing-at-point' found anything ... -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |