Skip to content

Commit

Permalink
Add defcustoms for elfeed-show-entry- functions
Browse files Browse the repository at this point in the history
Fixes skeeto#361.
  • Loading branch information
alphapapa committed Feb 9, 2020
1 parent 5f9b88e commit d0405e6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions elfeed-show.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,20 @@
(defvar elfeed-show-entry nil
"The entry being displayed in this buffer.")

(defvar elfeed-show-entry-switch #'switch-to-buffer
"Function to call to display and switch to the feed entry buffer.
Defaults to `switch-to-buffer'.")

(defvar elfeed-show-entry-delete #'elfeed-kill-buffer
"Function called when quitting from the elfeed-entry
buffer. Does not take any arguments.
(defcustom elfeed-show-entry-switch #'switch-to-buffer
"Function used to display the feed entry buffer."
:group 'elfeed
:type '(choice (function-item switch-to-buffer)
(function-item pop-to-buffer)
function))

Defaults to `elfeed-kill-buffer'.")
(defcustom elfeed-show-entry-delete #'elfeed-kill-buffer
"Function called when quitting from the elfeed-entry buffer.
Called without arguments."
:group 'elfeed
:type '(choice (function-item elfeed-kill-buffer)
(function-item delete-window)
function))

(defvar elfeed-show-refresh-function #'elfeed-show-refresh--mail-style
"Function called to refresh the `*elfeed-entry*' buffer.")
Expand Down

0 comments on commit d0405e6

Please sign in to comment.