Making elfeed config neater

Written on

I had this long list of YouTube feeds in elfeed-feeds & it looked ugly. So I finally decided to fix it & wrote this:

(setq yt-chans
      '(
        "UCsooa4yRKGN_zEE8iknghZA" ;; TED-Ed
        ))

(while yt-chans
  (push (concat
         "https://www.youtube.com/feeds/videos.xml?channel_id="
         (car yt-chans))
        elfeed-feeds)
  (setq yt-chans (cdr yt-chans)))

My elfeed config looks a lot neater now & it's easier to manage. Nothing special, just thought I'll share it here.