diff options
author | ThanosApollo <[email protected]> | 2022-10-12 14:23:46 +0300 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-10-12 14:23:46 +0300 |
commit | 670f297cece867b9dc36cc7e49aa77d98b379276 (patch) | |
tree | fab194086b588e8491433b038d40b8cd287f2c98 /.config/doom/elfeedConfig.el | |
parent | 895c911067dc269bb41ee0fdf2089a72939f2484 (diff) |
Restracture doom
Diffstat (limited to '.config/doom/elfeedConfig.el')
-rw-r--r-- | .config/doom/elfeedConfig.el | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/doom/elfeedConfig.el b/.config/doom/elfeedConfig.el new file mode 100644 index 0000000..a085990 --- /dev/null +++ b/.config/doom/elfeedConfig.el @@ -0,0 +1,41 @@ +;;; elfeedConfig.el -*- lexical-binding: t; -*- + +(require 'elfeed) +(map! :leader + (:prefix-map ("e" . "Elfeed") + :desc "Open elfeed" "o" #'elfeed + :desc "Update feed" "u" #'elfeed-update-feed + :desc "Update all" "a" #'elfeed-update)) +(use-package elfeed + :config + (setq elfeed-search-feed-face ":foreground #fff :weight bold" + elfeed-feeds (quote + ( + ("https://hackaday.com/blog/feed/" hackaday linux) + ("https://opensource.com/feed" opensource linux) + ("https://linux.softpedia.com/backend.xml" softpedia linux) + ("https://www.thelancet.com/rssfeed/ebiom_current.xml" Lancet ebiom) + ("https://www.thelancet.com/rssfeed/lancet_current.xml" Lancet lancet) + ("https://www.thelancet.com/rssfeed/ebiom_online.xml" LancetOnline ebiom) + ("https://www.thelancet.com/rssfeed/lancet_online.xml" LancetOnline lancet) + ("https://www.thelancet.com/rssfeed/lanmic_online.xml" LancetOnline Microbiology) + ("https://www.techrepublic.com/rssfeeds/topic/open-source/" techrepublic linu) + ))) + + ) + +(use-package elfeed-goodies + :init + (elfeed-goodies/setup) + :config + (setq elfeed-goodies/entry-pane-size 0.5)) + +(defun elfeed-search-format-date (date) + (format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date))) +(add-hook 'elfeed-show-mode-hook 'visual-line-mode) +(evil-define-key 'normal elfeed-show-mode-map + (kbd "J") 'elfeed-goodies/split-show-next + (kbd "K") 'elfeed-goodies/split-show-prev) +(evil-define-key 'normal elfeed-search-mode-map + (kbd "J") 'elfeed-goodies/split-show-next + (kbd "K") 'elfeed-goodies/split-show-prev) |