summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-03-01 05:15:10 +0200
committerThanos Apollo <[email protected]>2023-03-01 05:15:10 +0200
commitfd3965b997a2f89c2079f2e89f8ecd4ae19a421e (patch)
treeb3969d82d2d5e70cfc2173cbe69e0ad56383d5b1 /.emacs.d
parent7582c959ab3205a1bcdad70fd53ba653ab6dbd8b (diff)
emacs: update elfeed headings and keybindings
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 7cd1f9b..e4511b7 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -908,7 +908,6 @@ you have the correctly set the OPENAI_API_KEY variable"
("https://www.youtube.com/feeds/videos.xml?channel_id=UCq6VFHwMzcMXbuKyG7SQYIg"
youtube moist))))
-
(defun elfeed-v-mpv (url)
"Watch a video from URL in MPV"
(async-shell-command (format "mpv %s" url)))
@@ -918,13 +917,14 @@ you have the correctly set the OPENAI_API_KEY variable"
(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))))
+ 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))))
(define-key elfeed-search-mode-map (kbd "v") 'elfeed-view-mpv)
+(define-key elfeed-search-mode-map (kbd "U") 'elfeed-update)
(setq elfeed-goodies/entry-pane-size 0.65)