Emacs: pull feeds from nextcloud

This commit is contained in:
Paul-Henri Froidmont 2023-05-18 22:43:08 +02:00
parent 00fec679ba
commit 4e63ea053c
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 30 additions and 7 deletions

View file

@ -36,11 +36,28 @@
org-roam-ui-update-on-save t
org-roam-ui-open-on-start t))
;; Update elfeed on open
(add-hook 'elfeed-search-mode-hook #'elfeed-update)
; Taken from https://github.com/yqrashawn/yqdotfiles/blob/master/.doom.d/read.el
(setq! elfeed-use-curl t)
(after! elfeed
(elfeed-set-timeout 36000)
(run-with-idle-timer 300 t #'elfeed-update)
(setq!
;; elfeed-protocol-newsblur-maxpages 200
;; elfeed-search-filter "+unread +p1"
;; elfeed-search-trailing-width 60
rmh-elfeed-org-files `(,(concat org-directory "elfeed.org")))
;; (add-hook! 'elfeed-search-mode-hook 'elfeed-update)
(setq elfeed-protocol-enabled-protocols '(owncloud))
(defadvice elfeed (after configure-elfeed-feeds activate)
"Make elfeed-org autotags rules work with elfeed-protocol."
(setq elfeed-protocol-tags elfeed-feeds)
(setq elfeed-feeds (list
(list "owncloud+https://paultrial@cloud.banditlair.com"
:password (shell-command-to-string "echo -n `secret-tool lookup elfeed nextcloud`")
:autotags elfeed-protocol-tags))))
(elfeed-protocol-enable))
(use-package! elfeed-tube
;;:ensure t ;; or :straight t
:after elfeed
:demand t
:config
@ -56,7 +73,7 @@
([remap save-buffer] . elfeed-tube-save)))
(use-package! elfeed-tube-mpv
;;:ensure t ;; or :straight t
:bind (:map elfeed-show-mode-map
("gf" . elfeed-tube-mpv-follow-mode)
("gw" . elfeed-tube-mpv-where)))
;; ("gf" . elfeed-tube-mpv-follow-mode)
;; ("gw" . elfeed-tube-mpv-where)))
))

View file

@ -66,7 +66,7 @@
;;word-wrap ; soft wrapping with language-aware indent
:emacs
dired ; making dired pretty [functional]
(dired +dirvish) ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes

View file

@ -1,4 +1,5 @@
(package! lsp-tailwindcss)
(package! elfeed-protocol)
(package! elfeed-tube)
(package! elfeed-tube-mpv)
(package! mpv)