2b89037a7c
No need for a :location anymore, elfeed-goodies is on MELPA now. Signed-off-by: Gergely Nagy <algernon@cloudera.com>
62 lines
1.8 KiB
EmacsLisp
62 lines
1.8 KiB
EmacsLisp
;;; packages.el --- elfeed Layer extensions File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2015 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(setq elfeed-packages
|
|
'(elfeed
|
|
elfeed-goodies
|
|
elfeed-org
|
|
elfeed-web
|
|
))
|
|
|
|
(defun elfeed/init-elfeed ()
|
|
(use-package elfeed
|
|
:defer t
|
|
:init (spacemacs/set-leader-keys "af" 'elfeed)
|
|
: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
|
|
"o" 'elfeed-load-opml
|
|
"q" 'quit-window
|
|
"r" 'elfeed-search-update--force
|
|
"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 "q" 'quit-window))))
|
|
|
|
(defun elfeed/init-elfeed-goodies ()
|
|
(use-package elfeed-goodies
|
|
:commands elfeed-goodies/setup
|
|
:init (spacemacs|use-package-add-hook elfeed
|
|
:post-config (elfeed-goodies/setup))))
|
|
|
|
(defun elfeed/init-elfeed-org ()
|
|
(use-package elfeed-org
|
|
:defer t
|
|
:init (spacemacs|use-package-add-hook elfeed
|
|
:pre-config (elfeed-org))))
|
|
|
|
(defun elfeed/init-elfeed-web ()
|
|
(use-package elfeed-web
|
|
:defer t
|
|
:commands elfeed-web-stop
|
|
:init (when elfeed-enable-web-interface
|
|
;; 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))))
|