about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-28 08:12:36 -0600
committerCase Duckworth2021-01-28 08:12:36 -0600
commite21ce8f98660f14273c5ec8ab7d66782eb425702 (patch)
tree51fbf36de457a5c08fa1d7c68f4ad5eb2a6ea7af
parentChange tab bar mode settings (diff)
downloademacs-e21ce8f98660f14273c5ec8ab7d66782eb425702.tar.gz
emacs-e21ce8f98660f14273c5ec8ab7d66782eb425702.zip
Add a function to better sync with TTRSS
-rw-r--r--config.org25
1 files changed, 25 insertions, 0 deletions
diff --git a/config.org b/config.org index 9048d6b..906eaad 100644 --- a/config.org +++ b/config.org
@@ -1845,6 +1845,31 @@ much -- but until I figure out a proper syncing solution, it'll do.
1845 (elfeed-protocol-enable)) 1845 (elfeed-protocol-enable))
1846#+end_src 1846#+end_src
1847 1847
1848For whatever reason, =G= (=elfeed-search-fetch=) doesn't fetch anything
1849new from TTRSS. So I rebind it to ... =elfeed-protocol-ttrss-reinit=
1850(=elfeed-protocol-ttrss-update= doesn't pull everything for some reason
1851... this kind of thing is why I'm looking at other elfeed-sync
1852options).
1853
1854#+begin_src emacs-lisp :noweb-ref bindings
1855 (defun acdw-elfeed-protocol-ttrss-update-then-reinit ()
1856 "Update, then reinit, the first entry in `elfeed-feeds'."
1857 (interactive)
1858 (let ((url (caar elfeed-feeds))
1859 (msg-update "Elfeed Protocol: Updating...")
1860 (msg-reinit "Elfeed Protocol: Re-initializing..."))
1861 (message "%s" msg-update)
1862 (elfeed-protocol-ttrss-update url)
1863 (message "%s Done." msg-update)
1864
1865 (message "%s" msg-reinit)
1866 (elfeed-protocol-ttrss-reinit url)
1867 (message "%s Done." msg-reinit)))
1868
1869 (define-key elfeed-search-mode-map "G"
1870 #'acdw-elfeed-protocol-ttrss-update-then-reinit)
1871#+end_src
1872
1848* Org mode :package: 1873* Org mode :package:
1849 1874
1850** Install it with =straight.el= 1875** Install it with =straight.el=