Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;rss: elfeed
- (require 'elfeed)
- (defun elfeed-v-mpv (url)
- "Watch a video from URL in MPV"
- (call-process-shell-command (format "mpv --force-window '%s'" url) nil 0))
- ; (async-shell-command (format "mpv --geometry=50%x100%-1+1 --ytdl-format=best %s" url)))
- ;
- (defun elfeed-search-open-enclosure (&optional use-generic-p)
- "Youtube-feed link"
- (interactive "P")
- (let ((entries (elfeed-search-selected)))
- (cl-loop for entry in entries
- do (elfeed-untag entry 'unread)
- when (elfeed-entry-link entry)
- do (elfeed-v-mpv it))
- (mapc #'elfeed-search-update-entry entries)
- (unless (use-region-p) (forward-line)
- (message "Opening..."))))
- ;; C-c m or P for podcasts (after RET)
- (define-key elfeed-search-mode-map (kbd "C-c m") 'elfeed-search-open-enclosure)
- (require 'elfeed-goodies)
- (elfeed-goodies/setup)
- (setq elfeed-goodies/entry-pane-size 0.5)
- (setq elfeed-feeds (quote(
- ("https://notrelated.xyz/rss" podcast lukesmith)
- ("https://lexfridman.com/feed/podcast/" podcast lexfridman)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg" youtube distrotube tech)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA" youtube lukesmith)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCJIfeSCssxSC_Dhc5s7woww" youtube lexfridman)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCjVwBKqRh8ckPWhfD5UDKcg" youtube lindie language)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCqYPhGiB9tkShZorfgcL2lA" youtube whatihavelearned)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCLbiwlm3poGNh5XSVlXBkGA" youtube polymathy)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw" youtube 3blue1brown math)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCimiUgDLbi6P17BdaCZpVbg" youtube exurb1a)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCVk8weS4S2kJfja72fTxh5A" youtube freecodecamp tech) ;; FreeCodeCamp Talks
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCwgKmJM4ZJQRJ-U5NjvR2dg" youtube georgehotz tech)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UC0uTPqBCFIpZxlz_Lv1tk_g" youtube protesilaos)
- ("https://www.youtube.com/feeds/videos.xml?channel_id=UCG-KntY7aVnIGXYEBQvmBAQ" youtube thomasfrank)
- ("http://feeds.dzone.com/webdev" blog dzone tech)
- ("https://lukesmith.xyz/rss.xml" blog lukesmith)
- ("https://www.reddit.com/r/linux.rss" reddit tech)
- ("https://www.reddit.com/r/emacs.rss" reddit tech)
- ("https://www.reddit.com/r/languagelearning.rss" reddit language)
- ("https://www.reddit.com/r/latin.rss" reddit language)
- )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement