Add elfeed integration with my/denote/url

This commit is contained in:
Bram Schoenmakers 2024-01-02 23:31:40 +01:00
parent 0bc4ca1137
commit b0419a4e77
Signed by: bram
GPG key ID: 0CCD19DFDC63258F
2 changed files with 18 additions and 0 deletions

View file

@ -802,6 +802,15 @@ Based on an answer at the [[https://emacs.stackexchange.com/a/77480/34645][Emacs
'org
(denote-subdirectory-prompt))
(org-set-property "URL" url))
(defun my/elfeed/entry-url ()
"Return the URL of the current elfeed entry."
(when-let ((entry (or elfeed-show-entry
(elfeed-search-selected :ignore-region))))
(cons (elfeed-entry-link entry)
(elfeed-entry-title entry))))
(add-to-list 'my/denote/url-functions #'my/elfeed/entry-url)
#+end_src
* Using gpg-agent inside Emacs in Termux

View file

@ -70,3 +70,12 @@ looking at the <title> tags."
'org
(denote-subdirectory-prompt))
(org-set-property "URL" url))
(defun my/elfeed/entry-url ()
"Return the URL of the current elfeed entry."
(when-let ((entry (or elfeed-show-entry
(elfeed-search-selected :ignore-region))))
(cons (elfeed-entry-link entry)
(elfeed-entry-title entry))))
(add-to-list 'my/denote/url-functions #'my/elfeed/entry-url)