help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EWW func add url under point as bookmark


From: Emanuel Berg
Subject: Re: EWW func add url under point as bookmark
Date: Sat, 16 Apr 2022 21:12:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Here you go,

(defun eww-bookmark-add (url title)
  "Bookmark URL as TITLE."
  (interactive (list (thing-at-point 'url)
                     (read-string "Title: ") ))
  (when (and url title)
    (message "add %s as %s" url title) ))

;; tests:
;;
;; (eww-bookmark-add "https://dataswamp.org/~incal"; "Pretty good site")
;;
;; (call-interactively #'eww-bookmark-add)https://dataswamp.org/~incal
;;                                        ^ eval here

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]