Skip to content

Commit

Permalink
popper: Update defcustom for popper-reference-buffers
Browse files Browse the repository at this point in the history
* popper.el (popper-reference-buffers): Should now accept all valid
customization types.  Also improve the documentation for this option.
  • Loading branch information
karthink committed Sep 6, 2023
1 parent ecc01a4 commit 031e4d0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions popper.el
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,19 @@ Output*, and all help and compilation buffers.
will match against the Messages buffer, all help buffers and any
buffer with major-mode derived from fundamental mode that has
fewer than 10 lines at time of creation."
:type '(restricted-sexp :match-alternatives (stringp symbolp functionp consp))
:group 'popper)
fewer than 10 lines at time of creation.
It can also be a cons cell whose car is any of the above and
whose cdr is the symbol `hide', in which case matching popup
buffers will be suppressed when they are first created."
:type '(repeat
(choice (string :tag "Buffer name regexp")
(symbol :tag "Major mode")
(function :tag "Predicate Function")
(cons (choice (regexp :tag "Buffer name regexp")
(symbol :tag "Major mode")
(function :tag "Predicate function"))
(const :tag "Hide" hide)))))

(defcustom popper-mode-line '(:eval (propertize " POP" 'face 'mode-line-emphasis))
"String or sexp to show in the mode-line of popper.
Expand Down

0 comments on commit 031e4d0

Please sign in to comment.