From 1eb9b6cb392f73279e0880b7e957a63fb48d0815 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 7 Jan 2022 00:05:45 -0600 Subject: Make elfeed load the database before opening --- init.el | 2 ++ lisp/+elfeed.el | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/init.el b/init.el index bac9a54..b046ffa 100644 --- a/init.el +++ b/init.el @@ -229,6 +229,7 @@ copy move hardlink symlink shell touch) dired-dwim-target t) + (:local-set truncate-lines nil) (:bind "" #'dired-up-directory "TAB" #'dired-subtree-cycle "i" #'dired-subtree-toggle @@ -894,6 +895,7 @@ See also `crux-reopen-as-root-mode'." elfeed-search-title-max-width 78 elfeed-show-unique-buffers t elfeed-db-directory (elfeed/ "db/" t)) + (:+key "C-x w" #'+elfeed) (:with-mode elfeed-search-mode (:hook #'hl-line-mode) ;; https://old.reddit.com/r/emacs/comments/rlli0u/whats_your_favorite_defadvice/hphfh4e/ diff --git a/lisp/+elfeed.el b/lisp/+elfeed.el index 823902b..c26bfab 100644 --- a/lisp/+elfeed.el +++ b/lisp/+elfeed.el @@ -4,6 +4,7 @@ (require 'elfeed) +;; https://karthinks.com/software/lazy-elfeed/ (defun +elfeed-scroll-up-command (&optional arg) "Scroll up or go to next feed item in Elfeed" (interactive "^P") @@ -20,5 +21,12 @@ (scroll-down-command arg) (error (elfeed-show-prev))))) +;; https://babbagefiles.blogspot.com/2017/03/take-elfeed-everywhere-mobile-rss.html +(defun +elfeed () + "Wrapper to load the elfeed db from disk before opening." + (interactive) + (elfeed-db-load) + (elfeed)) + (provide '+elfeed) ;;; +elfeed.el ends here -- cgit 1.4.1-21-gabe81