|
From: | Alex |
Subject: | Re: EWW func add url under point as bookmark |
Date: | Sat, 16 Apr 2022 16:34:52 +0200 |
Emanuel Berg writes: > Alex wrote: > (interactive "sTitle: ") right >> (let ((str-url (thing-at-point 'url))) >> (eww-bookmark-add str-url title))) > Maybe should check if `thing-at-point' found anything ... Already checked in func `eww-bookmark-add' (unless (stringp url) (user-error "invalid url string required")) new simplified version: #+begin_src elisp (defun eww-bookmark-url-under-point (title) "Bookmark url under point calling it TITLE" (interactive "sTitle: ") (eww-bookmark-add (thing-at-point 'url) title)) #+end_src -- Alex Emacs Lover. FSF Member. Free/Libre Software supporter. stallmansupport.org - Disinformation succeeds because so many people care deeply about injustice but do not take the time to check the facts.
[Prev in Thread] | Current Thread | [Next in Thread] |