From a3de598466e35f822e085b8a8f8db2723ef8bd1c Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Fri, 12 Dec 2025 21:33:03 +0100 Subject: [PATCH] Added package Elfeed Org in the Emacs custom config --- emacs/.emacs.d/elfeed.org | 16 +++++++++++++++ emacs/.emacs.d/init.el | 43 +++++++++++++++++++++++++++++++++------ 2 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 emacs/.emacs.d/elfeed.org diff --git a/emacs/.emacs.d/elfeed.org b/emacs/.emacs.d/elfeed.org new file mode 100644 index 0000000..df7acad --- /dev/null +++ b/emacs/.emacs.d/elfeed.org @@ -0,0 +1,16 @@ +#+TITLE: RSS Urls +#+AUTHOR: Fabio Scotto di Santolo +#+DATE: <2025-10-25 Sat> + +* root :elfeed: +** Programming :programming: +*** [[https://feeds.feedburner.com/TheHackersNews][Hacker News]] :news: :security: +** FOSS News :news: +*** [[https://blog.linuxmint.com/?feed=rss2][Linux Mint Blog]] :blog: :linux: :linuxmint: +** Youtube :youtube: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg][DistroTube]] :emacs: :foss: :linux: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCABhVAlCkcEG9a2UVruq9vw][Douglas Mortimer]] :fashion: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCqZe2cxQNCvgkQxUuqsIaig][Esadecimale]] :emacs: :programming: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCnDDucQDLncrauOCmanCIgw][MorroLinux]] :linux: :foss: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCDDG9vOcmgwlslJJpCWjqOg][Salvatore Sanfilippo]] :programming: +*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCrqM0Ym_NbK1fqeQG2VIohg][Tsoding Daily]] :emacs: :programming: diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index ed7d7f5..d049a75 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -166,7 +166,6 @@ (use-package elfeed :ensure t :custom - (elfeed-db-directory "~/.cache/elfeed") (elfeed-enclosure-default-dir "~/Downloads/") (elfeed-search-remain-on-entry t) (elfeed-search-title-max-width 100) @@ -175,13 +174,32 @@ (elfeed-show-truncate-long-urls t) (elfeed-sort-order 'descending) (elfeed-search-filter "+unread") - (elfeed-feeds - '(("https://blog.linuxmint.com/?feed=rss2" linux linuxmint) - ("https://feeds.feedburner.com/TheHackersNews" hackernews news security programming))) - :bind (("C-c f" . elfeed))) + :bind + ("C-c o f" . fscotto/elfeed-load-db-and-open) + (:map elfeed-search-mode-map + ("w" . elfeed-search-yank) + ("R" . elfeed-update) + ("q" . elfeed-kill-buffer)) + (:map elfeed-show-mode-map + ("S" . elfeed-show-new-live-search) ; moved to free up 's' + ("c" . (lambda () (interactive) (org-capture nil "capture"))) + ("e" . email-elfeed-entry) + ("f" . elfeed-show-fetch-full-text) + ("w" . elfeed-show-yank)) + :hook + (elfeed-show-mode . visual-line-mode)) (use-package elfeed-org - :ensure t) + :ensure t + :after elfeed + :custom + ;; Optionally specify a number of files containing elfeed + ;; configuration. If not set then the location below is used. + ;; Note: The customize interface is also supported. + (rmh-elfeed-org-files (list "~/.emacs.d/elfeed.org"))) + +(with-eval-after-load 'elfeed + (elfeed-org)) ;; Terminal (use-package vterm @@ -287,4 +305,17 @@ (use-package dap-mode :ensure t) +;;functions to support syncing .elfeed between machines +;;makes sure elfeed reads index from disk before launching +(defun fscotto/elfeed-load-db-and-open () + "Wrapper to load the elfeed db from disk before opening URL https://pragmaticemacs.wordpress.com/2016/08/17/read-your-rss-feeds-in-emacs-with-elfeed/ + Created: 2016-08-17 + Updated: 2025-06-13" + (interactive) + (elfeed) + (elfeed-db-load) + ;; (elfeed-search-update--force) + (elfeed-update) + (elfeed-db-save)) + (message "...user configuration loaded")