diff options
author | Thanos Apollo <[email protected]> | 2023-09-06 16:36:31 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-06 16:36:31 +0300 |
commit | bcb3af0340bf3ed02763f61aecec2ab134eeed80 (patch) | |
tree | 1bb91efe9a4419bf4d92d35b3707b6b6bcc5c147 /.emacs.d | |
parent | 3b8906869b833eabb5a847c44314d6a4b664d1ee (diff) |
elfeed: update keybindings and feeds
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/modules/thanos-elfeed.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.emacs.d/modules/thanos-elfeed.el b/.emacs.d/modules/thanos-elfeed.el index 630c902..20701d7 100644 --- a/.emacs.d/modules/thanos-elfeed.el +++ b/.emacs.d/modules/thanos-elfeed.el @@ -99,14 +99,16 @@ ("https://wp.medscape.com/cx/rssfeeds/2700.xml" med medscape) ("https://nyxt.atlas.engineer/feed" - nyxt))) + nyxt) + ("https://www.science.org/action/showFeed?type=etoc&feed=rss&jc=sciimmunol" + science))) (defun elfeed-v-mpv (url) "Watch a video from URL in MPV" (start-process-shell-command "elfeed-video" nil (format "mpv \"%s\"" url))) (defun elfeed-view-mpv (&optional use-generic-p) - "Youtube-feed link" + "Play video link with mpv." (interactive "P") (let ((entries (elfeed-search-selected))) (cl-loop for entry in entries @@ -116,10 +118,6 @@ (mapc #'elfeed-search-update-entry entries) (unless (use-region-p) (forward-line)))) -(define-key elfeed-search-mode-map (kbd "v") 'elfeed-view-mpv) -(define-key elfeed-search-mode-map (kbd "U") 'elfeed-update) -(define-key thanos/applications-map (kbd "f") 'elfeed) - (setf elfeed-goodies/entry-pane-size 0.55) (elfeed-goodies/setup) @@ -127,5 +125,10 @@ (eat-eshell-mode 1) +(define-key thanos/applications-map (kbd "f") 'elfeed) +(define-key elfeed-search-mode-map (kbd "v") 'elfeed-view-mpv) +(define-key elfeed-search-mode-map (kbd "U") 'elfeed-update) +(define-key thanos/applications-map (kbd "f") 'elfeed) + (provide 'thanos-elfeed) ;;; thanos-elfeed.el ends here |