-
Notifications
You must be signed in to change notification settings - Fork 0
/
gs-elfeed.el
53 lines (49 loc) · 1.38 KB
/
gs-elfeed.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;;; -*- lexical-binding: t -*-
(use-package elfeed
:bind
(
:map elfeed-search-mode-map
("R" . kaushal-modi/elfeed-search-mark-all-as-read)
:map elfeed-show-mode-map
("C-c C-o" . shr-browse-url)
)
:config
;; https://emacs.stackexchange.com/a/2441
(defun kaushal-modi/elfeed-search-mark-all-as-read ()
"Call `mark-whole-buffer' and `elfeed-search-untag-all-undead' in unison,
marking all current messages as read."
(interactive)
(mark-whole-buffer)
(elfeed-search-untag-all-unread))
:defer t
:ensure t
)
(use-package elfeed-org
:after elfeed org
:config
(elfeed-org)
:custom
(rmh-elfeed-org-files (list (expand-file-name "elfeed.org" org-directory)))
:ensure t
)
(use-package elfeed
:bind
(
:map elfeed-show-mode-map
("B" . karthinks/elfeed-show-eww-open)
:map elfeed-search-mode-map
("B" . karthinks/elfeed-search-eww-open)
)
:config
(defun karthinks/elfeed-show-eww-open (&optional use-generic-p)
"Open elfeed show entry with \\[eww]."
(interactive "P")
(let ((browse-url-browser-function #'eww-browse-url))
(elfeed-show-visit use-generic-p)))
(defun karthinks/elfeed-search-eww-open (&optional use-generic-p)
"Open elfeed search entry with \\[eww]."
(interactive "P")
(let ((browse-url-browser-function #'eww-browse-url))
(elfeed-search-browse-url use-generic-p)))
)
(provide 'gs-elfeed)