emacs: remove elfeed

Now that freshrss instance is up and running very well, I am able to
track and read stuff from my phone as well.

If in future I'm able to get elfeed to integrate with FreshRSS, I'll
bring it back, but for now it will probably save me significant time
during emacs startup
This commit is contained in:
Payas Relekar 2023-09-21 13:20:41 +05:30
parent dacf71f568
commit 659cb53f46
2 changed files with 2 additions and 56 deletions

View file

@ -611,60 +611,6 @@ As such, relying on imperative config evaluation can turn into gotchas. While th
(arxiv-citation-bibtex-files `(,e3/bib-file)))
#+end_src
* Elfeed
- Elfeed is RSS feed reader from within Emacs
- Elfeed can read a list of feeds from an elisp variable as done below, or from an org file with hierarchical structure for tags and feeds under them. The elisp way causes more duplication, since some tags get repeated for multiple feeds, but, in my experience, my feed list is not perfectly hierarchical, and so I prefer it this way.
- Set elfeed db directory to withing =org-directory=. This is done so Syncthing will sync elfeed read/delete status as well.
- Set global shortcuts to open and update elfeed feed
+ =C-SPC 1 e= Open elfeed
+ =C-SPC 1 u= Update elfeed feeds
- Extra room for post titles
- Leave point on current entry in elfeed-search
- Set default elfeed search to show 4 weeks of entries
- Set default feed timeout to 30 seconds
- Auto-update feeds every time elfeed-search is opened
- Couple of functions and their keybindings to open given entry with EWW. This way I can give those rude feeds with just links or excerpts a go within Emacs. If I need a browser I can always just press ~&~ and open it in regular browser. These functions also make those windows larger. It is not perfect, can be refined bit more, but for now it works well enough.
- Finally, a giant list of elfeed feeds is loaded from separate repo.
#+begin_src emacs-lisp :lexical t
(use-package! elfeed
:after (gnus)
:commands (elfeed elfeed-update elfeed-kill-buffer)
:init
(setq! elfeed-db-directory (concat global-org-directory "elfeed")
elfeed-search-title-max-width 120
elfeed-search-remain-on-entry t)
:config
(setq-default elfeed-search-filter "@4-week-ago +unread")
(elfeed-set-timeout 30)
(add-hook! 'elfeed-search-mode-hook #'elfeed-update)
(defun elfeed-show-eww-open (&optional use-generic-p)
"open with eww"
(interactive "P")
(let ((browse-url-browser-function #'eww-browse-url))
(elfeed-show-visit use-generic-p)
(doom/window-enlargen)))
(defun elfeed-search-eww-open (&optional use-generic-p)
"open with eww"
(interactive "P")
(let ((browse-url-browser-function #'eww-browse-url))
(elfeed-search-browse-url use-generic-p)
(doom/window-enlargen)))
(map! (:map elfeed-search-mode-map
:localleader
:desc "Open in EWW" "1" #'elfeed-search-eww-open)
(:map elfeed-search-mode-map
:desc "quit" "q" #'elfeed-kill-buffer)
(:map elfeed-show-mode-map
:localleader
:desc "Open in EWW" "1" #'elfeed-show-eww-open))
(if (file-exists-p "~/org/elisp-fu/elfeed-fu.el")
(load "~/org/elisp-fu/elfeed-fu.el")))
#+end_src
* Ripgrep
Because default search for org-mode (=org-search-view=) is *painfully* slow.
ripgrep is indeed fast, but lacks couple of features from =org-search-view= which I should try to fix for my own.

View file

@ -216,8 +216,8 @@
:app
calendar
;;irc ; how neckbeards socialize
(rss ; emacs as an RSS reader
+org)
;; (rss ; emacs as an RSS reader
;; +org)
;;twitter ; twitter client https://twitter.com/vnought
:config