Bookmark / Star feeds in Elfeed

Published on Oct 31, 2021, by Junji Zhi

Recently I switched to use elfeed to manage all my RSS feeds.

Sometimes I found the interesting articles that I want to mark and save them for future. There is no built-in starring features with elfeed.

From this Pragmatic Emacs article, I found this solution:

;; From
(require 'elfeed)
(defalias 'elfeed-toggle-star
  (elfeed-expose #'elfeed-search-toggle-all 'star))

(eval-after-load 'elfeed-search
  '(define-key elfeed-search-mode-map (kbd "m") 'elfeed-toggle-star))

;; face for starred articles
(defface elfeed-search-star-title-face
  '((t :foreground "#f77"))
  "Marks a starred Elfeed entry.")

(push '(star elfeed-search-star-title-face) elfeed-search-face-alist)

Now I can press the m key in the elfeed buffer and the marked feed is tagged with star as well as turn red.

Pretty neat!