From 0411f2a6e57e4a35340f8e4920f70a81d60b8072 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 28 Dec 2021 22:15:22 -0600 Subject: Advise elfeed-search-update--force to save the db after --- init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.el b/init.el index 63afc75..937e9a1 100644 --- a/init.el +++ b/init.el @@ -615,6 +615,8 @@ See also `crux-reopen-as-root-mode'." elfeed-curl-extra-arguments '("--insecure") elfeed-show-unique-buffers t elfeed-db-directory (sync/ "elfeed/db/" t)) + ;; https://old.reddit.com/r/emacs/comments/rlli0u/whats_your_favorite_defadvice/hphfh4e/ + (advice-add #'elfeed-search-update--force :after #'elfeed-db-save) (:with-mode elfeed-show-mode (:bind "SPC" #'+elfeed-scroll-up-command "S-SPC" #'+elfeed-scroll-down-command) -- cgit 1.4.1-21-gabe81