2016-01-18 03:06:04 +00:00
|
|
|
;;; packages.el --- elfeed Layer packages File for Spacemacs
|
2015-11-01 10:17:42 +00:00
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-11-01 10:17:42 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-11-01 10:17:42 +00:00
|
|
|
|
|
|
|
(setq elfeed-packages
|
|
|
|
'(elfeed
|
2019-09-16 17:14:13 +00:00
|
|
|
(elfeed-goodies :toggle elfeed-enable-goodies)
|
2015-12-04 04:03:24 +00:00
|
|
|
elfeed-org
|
2019-09-16 17:14:13 +00:00
|
|
|
(elfeed-web :toggle elfeed-enable-web-interface)
|
2015-12-04 04:03:24 +00:00
|
|
|
))
|
2015-11-01 10:17:42 +00:00
|
|
|
|
2016-05-27 04:22:47 +00:00
|
|
|
(defun elfeed/init-elfeed ()
|
|
|
|
(use-package elfeed
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2020-06-28 21:25:04 +00:00
|
|
|
:init (spacemacs/set-leader-keys "are" 'elfeed)
|
2016-05-27 04:22:47 +00:00
|
|
|
:config
|
|
|
|
(progn
|
|
|
|
(evilified-state-evilify-map elfeed-search-mode-map
|
|
|
|
:mode elfeed-search-mode
|
|
|
|
:eval-after-load elfeed-search
|
|
|
|
:bindings
|
|
|
|
"c" 'elfeed-db-compact
|
|
|
|
"gr" 'elfeed-update
|
|
|
|
"gR" 'elfeed-search-update--force
|
|
|
|
"gu" 'elfeed-unjam
|
|
|
|
"o" 'elfeed-load-opml
|
|
|
|
"w" 'elfeed-web-start
|
|
|
|
"W" 'elfeed-web-stop)
|
|
|
|
(evilified-state-evilify-map elfeed-show-mode-map
|
|
|
|
:mode elfeed-show-mode
|
|
|
|
:eval-after-load elfeed-show
|
|
|
|
:bindings
|
|
|
|
(kbd "C-j") 'elfeed-show-next
|
2017-11-07 07:29:19 +00:00
|
|
|
(kbd "C-k") 'elfeed-show-prev)
|
|
|
|
(evil-define-key 'visual elfeed-search-mode-map
|
|
|
|
"+" 'elfeed-search-tag-all
|
|
|
|
"-" 'elfeed-search-untag-all
|
|
|
|
"b" 'elfeed-search-browse-url
|
|
|
|
"y" 'elfeed-search-yank))))
|
2016-05-27 04:22:47 +00:00
|
|
|
|
2018-01-11 04:57:18 +00:00
|
|
|
(defun elfeed/pre-init-elfeed-goodies ()
|
2019-09-16 17:14:13 +00:00
|
|
|
(spacemacs|use-package-add-hook elfeed
|
|
|
|
:post-config
|
|
|
|
(progn
|
|
|
|
(elfeed-goodies/setup)
|
|
|
|
(evil-define-key 'evilified elfeed-show-mode-map
|
|
|
|
"o" 'elfeed-goodies/show-ace-link))))
|
2018-01-11 04:57:18 +00:00
|
|
|
|
2016-05-27 04:22:47 +00:00
|
|
|
(defun elfeed/init-elfeed-goodies ()
|
2019-09-16 17:14:13 +00:00
|
|
|
(use-package elfeed-goodies :commands elfeed-goodies/setup))
|
2018-01-11 04:57:18 +00:00
|
|
|
|
|
|
|
(defun elfeed/pre-init-elfeed-org ()
|
|
|
|
(when (boundp 'rmh-elfeed-org-files)
|
|
|
|
(spacemacs|use-package-add-hook elfeed
|
|
|
|
:pre-config (elfeed-org))))
|
2016-05-27 04:22:47 +00:00
|
|
|
|
|
|
|
(defun elfeed/init-elfeed-org ()
|
|
|
|
(use-package elfeed-org
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2018-01-11 04:57:18 +00:00
|
|
|
:if (boundp 'rmh-elfeed-org-files)))
|
2016-05-27 04:22:47 +00:00
|
|
|
|
|
|
|
(defun elfeed/init-elfeed-web ()
|
|
|
|
(use-package elfeed-web
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2016-05-27 04:22:47 +00:00
|
|
|
:commands elfeed-web-stop
|
2019-09-16 17:14:13 +00:00
|
|
|
:init
|
|
|
|
(progn
|
|
|
|
;; TODO check if the port is already in use
|
|
|
|
;; hack to force elfeed feature to be required before elfeed-search
|
|
|
|
(require 'elfeed)
|
|
|
|
(elfeed-web-start))))
|