From f50c5240edf959f14c84b895cc8e64d38ba414ab Mon Sep 17 00:00:00 2001 From: User Mms Date: Wed, 30 Oct 2024 21:50:08 +0100 Subject: feat: use miniflux as backend for elfeec --- config.org | 1 + mms-configuration.org | 2 +- mms-misc-rss.org | 48 +++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index c01b161..15287d2 100644 --- a/config.org +++ b/config.org @@ -20,6 +20,7 @@ #+BEGIN_SRC emacs-lisp (setq vc-follow-symlinks t) + (setq ispell-program-name "hunspell") #+END_SRC diff --git a/mms-configuration.org b/mms-configuration.org index 1292894..e745e47 100644 --- a/mms-configuration.org +++ b/mms-configuration.org @@ -182,7 +182,7 @@ I use two machines on different OSes (personal on FreeBSD and work on MacOS). On a few occasions, I will use device to use correct behavior. #+begin_src emacs-lisp - (setq mms-is-voyager (string= (system-name) "voyager")) + (setq mms-is-voyager (string= (system-name) "voyager.local")) (setq mms-is-mac (string= (system-name) "RN90Y7RDHT")) #+end_src diff --git a/mms-misc-rss.org b/mms-misc-rss.org index 3eb72b2..11fc32b 100644 --- a/mms-misc-rss.org +++ b/mms-misc-rss.org @@ -17,9 +17,43 @@ Elfeed is the single best RSS reader for Emacs and of the best out there. #+begin_src emacs-lisp (use-package elfeed - :ensure t) + :ensure t + :config + + ;; horizontal-split for search view + ;; from https://karthinks.com/software/lazy-elfeed/ + (setq elfeed-show-entry-switch #'elfeed-display-buffer) + + (defun elfeed-display-buffer (buf &optional act) + (pop-to-buffer buf) + (set-window-text-height (get-buffer-window) (round (* 0.7(frame-height))))) + ) #+end_src +* Elfeed-protocol + +#+begin_src emacs-lisp + (use-package elfeed-protocol + :ensure t + :after elfeed + :config + + (elfeed-set-timeout 36000) + (setq elfeed-protocol-feeds '(("fever+https://mms@miniflux.crys.site" + :api-url "https://miniflux.crys.site/fever/" + :use-authinfo t))) + + (setq elfeed-protocol-fever-update-unread-only nil) + (setq elfeed-protocol-fever-fetch-category-as-tag t) + (setq elfeed-use-curl t) + + + (setq elfeed-protocol-enabled-protocols '(fever)) + (elfeed-protocol-enable)) +#+end_src + + + * Elfeed-org I want to manage my subscription as org subtree - makes it easier to make sense of it. @@ -28,12 +62,12 @@ Lucky, elfeed-org does exact this! You can read my intro to elfeed org [[https://michal.sapka.me/emacs/elfeed-literate-config/][on my website.]] #+begin_src emacs-lisp - (use-package elfeed-org - ;; :after elfeed - :ensure t - :config - (setq rmh-elfeed-org-files (list "~/.emacs.d/mms-misc-rss.org")) - (elfeed-org)) + ;; (use-package elfeed-org + ;; :after elfeed + ;; :ensure t + ;; :config + ;; (setq rmh-elfeed-org-files (list "~/.emacs.d/mms-misc-rss.org")) + ;; (elfeed-org)) #+end_src And some keybindings -- cgit v1.2.3