hamacs/ha-feed-reader.org
Howard Abrams 29fb549c32 New blog
2024-03-04 09:28:59 -08:00

13 KiB

My RSS Feeds

A literate programming file for configuring elfeed in Emacs.

Configuring Elfeed

Let's get our feeds from a collection of org mode files. By default, Doom configures rmh-elfeed-org-files to elfeed.org in org-directory, so that will be fine.

  (use-package elfeed
    :config
    ;; While I would like to share the /status/ of my reads, so ...
    (setq elfeed-db-directory "~/dropbox/.elfeed/")

    ;; Let's limit what is initially displayed, and then expand it:
    (setq elfeed-search-filter "@6-months-ago +unread -science -funny")

    ;; While not an elfeed-specific variable, this make reading articles
    ;; with images easier:
    (setq pixel-scroll-precision-mode t)

    (defvar ha-elfeeds-title
      (concat (all-the-icons-faicon "rss") " Feed Reader"))

    (major-mode-hydra-define elfeed-search-mode
      (:title ha-elfeeds-title)
      ("Feeds"
       (("U" (elfeed-search-fetch 4) "Refresh Feeds")
        ("u" elfeed-update "Update Screen")
        ("f" elfeed-search-live-filter "Filter")
        ("F" elfeed-search-clear-filter "Clear Filter")
        ("X" elfeed-unjam "Unjam"))
       "Entry"
       (("r" elfeed-search-untag-all-unread "Mark read" :color pink)
        ("R" ha-elfeed-tag-unread "Mark read/refresh")
        ("y" elfeed-search-yank "Copy URL"))))

    (major-mode-hydra-define elfeed-show-mode
      (:title ha-elfeeds-title)
      ("Entry"
       (("n" elfeed-show-next "Next Entry" :color pink)
        ("p" elfeed-show-prev "Previous Entry" :color pink))
       "Read"
       (("b" elfeed-show-visit "Show in EWW")
        ("B" elfeed-show-visit-gui "Show in Browser")
        ("y" elfeed-show-yank "Copy URL"))
       "Navigation"
       (("o" link-hint-open-link "Open Link")
        ("q" bury-buffer "Close")
        ("Q" delete-window "Close Window")))))

  (defun ha-elfeed-tag-unread ()
    (interactive)
    (elfeed-search-untag-all 'unread)
    (elfeed-search-update))

According to Ben Maughan and this Pragmatic Emacs essay, we could easily browse an article in the GUI browser instead of EWW with capital B:

  (defun elfeed-show-visit-gui ()
    "Wrapper for elfeed-show-visit to use gui browser instead of eww"
    (interactive)
    (let ((browse-url-generic-program "/usr/bin/open"))
      (elfeed-show-visit t)))

Quick way to start and jump to my world of feeds.

  (defun ha-elfeed-persp ()
    "Create an ELFEED workspace and start my ELFEED client."
    (interactive)
    (let ((already-reading? (seq-contains-p
                              (persp-names) "feeds" 'equal)))
        (persp-switch "feeds")
        (unless already-reading?
          (elfeed))))

And some global keys to display them in the apps menu:

  (ha-leader "a f" '("elfeed switch" . ha-elfeed-persp))

The Feeds

The elfeed-org project configures elfeed to read the RSS feeds from an Org file … like this one!

  (use-package elfeed-org
    :after elfeed
    :config
    (setq rmh-elfeed-org-files (list (f-join hamacs-source-dir "ha-feed-reader.org")))
    (elfeed-org))

Personal

Howardisms

Clearly, I know what I write, but often good to see how it displays elsewhere.

Get Pocket Choices

Interesting articles I find through various channels gets saved here. Not sure if this is the best approach, but…

Software Development

Emacs

Planet Emacslife

Currently the best Emacs weblog as an aggregator of all things Emacscy. Lots of duplication with what I already follow, so I may have trim things down.

Planet Emacsen

Was the best overall Emacs weblog (in the traditional sense), but has since been replaced. I'll leave it here for a bit.

Sacha Chua

Her curated summary of the world of Emacs is quite helpful (to make sure I don't miss something).

Mickey Petersen

Wrote the wonderful book, Mastering Emacs.

With-Emacs

Has had some good essays with a bent toward modern updates.

Emacs Horrors Blog

Lovely peelings of the onion's layers.

Ben Maughan

The Pragmatic Emacs blog.

Endless Parentheses

Artur Malabarba's blog mostly about Emacs.

Emacs Fu

As stated here, a blog mostly dedicated to Emacs tips and tricks.

Emacs Redux

Bozhidar Batsov's Emacs-focused blog. While it hasn't been updated in about a year (end of 2017), we'll leave it here, as well as his newer, personally-focused blog.

Christopher Wellons

The null program blog, has discussed technical aspects of Emacs, including the use of elfeed, which is my current favorite way to read my RSS feeds.

Sebastian Wiesner

A personal blog of a Scala engineer that uses Emacs on MacOS.

infin

While just starting out, this blogger from China is off to a good start.

Marcin Borkowski

The Emacs Polish professor and author of mbork.pl, and new book on intermediate Lisp programming.

Irreal

Jon Sander's blog mostly on Emacs.

Tassilo Horn

A self-proclaimed Emacs addict and Free Software enthusiast from Koblenz, Germany. While the blog is currently short, I have high hopes.

Emacs TIL

An Emacs-learning blog by Junji Zhi.

(car nil)

Abhinav Tushar's blog is heavily Emacs and org-focused.

Emacs Cat

A new blog about Emacs.

Tyler Dodge

Intrigued with Emacs org-assistant project, but a good Emacs blog.

Programming

David Nolen

While he hasn't updated the blog in a while, keep an eye on his Github projects.

Carin Meyer

Thoughtful and inspirational, her creative projects are always fun to explore.

Mike Fogus

Send More Paramedics blog. Wrote Functional JavaScript and, of course, The Joy of Clojure.

Bozhidar Batsov

Most prolific engineer, who ran Emacs Redux, is the principal mind behind the wonderful Cider project.

Howard Lewis Ship

Personal friend who often has fun interesting projects to keep tabs.

C'est la Z

Mike Zamansky's posts on Emacs and computer education.

Other

Jenn Schiffer

Quirky and fun. Looking forward to her new project.

N-Gate's Webshit Weekly

Irreverent and fun. The summary is hilarious, and often sets my mental state correctly before diving into Hacker News.

Information is Beautiful

David McCandless' blog on graphical display of information.

Digitial Antiquarian

History of technology that is well researched and personal.

Science

Do I need more science articles? Perhaps, but most of my news in this arena comes from my Twitter lists…

Space

Discover Magazine's Out There

A pretty good blog of interesting articles that post about once a month.

General

Understanding Uncertainty

Essays on the mathematics of combinatorics.

Science Sushi

An interesting blog from Discover that has moved on with retirement. Hopefully, Dr. Christie Wilcox will continue writing.

Seriously, Science?

Another of my favorite science blogs is retiring.

Geeky

XKCD

The penultimate geek cartoon.

Saturday Morning Breakfast Cereal

A daily helping of geeky humor.

Foxtrot

Regular Sunday features of this long-running comic is now even more geeky

Cube Drone

Quite geeky.

Rock, Paper, Cynic

Oddly drawn, quirky and often geeky.

Buttersafe

Odd and quirky.

Dork Tower

A geeky, gaming-theme comic.

Commit Strip

Insightful coding strip.

PHD Comics

Sure, make me wish I had continued my studies…

Political

Political Irony

While Iron Knee requires a break, any time he posts, its a joy.

New Yorker Cartoons

Often political, hopefully more political.

Smart and Irreligious

Perry Bible Fellowship

Smart, inventive and usually hilarious

Lio

I've used to enjoy this comic years ago, but had lost track. Love that Mark is still doing work.

The Oatmeal

While funny, sometimes blesses with longer thought pieces.

Existential Comics

Philosophical, and one would be smarter just by following along (and the Twitter feed too).

Church of the Flying Spaghetti Monster

News from the world of religious favoritism.

Atheist Pig

Irreligious, as one can guess. Hasn't posted for a while. Break?

Jesus and Mo

Favorite celebrities arguing with Bar Maid.

Role Playing Games

Interested in both RPGs and Emacs? Probably.

Misc

The Long Now

Always been fascinated with the ideas associated with making a 10,000 year clock.

Wait, But Why?

Has some good, thought-provoking essays.