Update with kagi integration

This commit is contained in:
Bram Schoenmakers 2024-01-15 17:49:19 +01:00
parent b04e676203
commit 73a2cb21ec
Signed by: bram
GPG key ID: 0CCD19DFDC63258F
2 changed files with 22 additions and 2 deletions

View file

@ -817,7 +817,17 @@ Based on an answer at the [[https://emacs.stackexchange.com/a/77480/34645][Emacs
(org-set-property "URL" (if (consp url)
(car url)
url)))
url))
(goto-char (point-max))
;; Requires kagi.el at https://codeberg.org/bram85/kagi.el
(require 'kagi)
(when (yes-or-no-p "Insert summary?")
(kagi-summarize-url url t
(completing-read
(format-prompt "To language" "EN")
'("EN" "NL")))))
;;; Elfeed integration

View file

@ -85,7 +85,17 @@ looking at the <title> tags."
(org-set-property "URL" (if (consp url)
(car url)
url)))
url))
(goto-char (point-max))
;; Requires kagi.el at https://codeberg.org/bram85/kagi.el
(require 'kagi)
(when (yes-or-no-p "Insert summary?")
(kagi-summarize-url url t
(completing-read
(format-prompt "To language" "EN")
'("EN" "NL")))))
;;; Elfeed integration