-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cider-doc-auto-select-buffer custom variable
Added cider-doc-auto-select-buffer custom variable to control if the documentation viewer popup will be autoselected after opening.
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,10 @@ | |
:group 'cider-docview-mode | ||
:package-version '(cider . "0.7.0")) | ||
|
||
(defcustom cider-doc-auto-select-buffer t | ||
"Autoselect the documentation viewer after popup." | ||
This comment has been minimized.
Sorry, something went wrong. |
||
:type 'boolean | ||
:group 'cider-doc) | ||
This comment has been minimized.
Sorry, something went wrong.
bbatsov
Member
|
||
|
||
|
||
;; Faces | ||
|
@@ -263,7 +267,7 @@ opposite of what that option dictates." | |
(defun cider-doc-lookup (symbol) | ||
"Look up documentation for SYMBOL." | ||
(if-let ((buffer (cider-create-doc-buffer symbol))) | ||
(cider-popup-buffer-display buffer t) | ||
(cider-popup-buffer-display buffer cider-doc-auto-select-buffer) | ||
(user-error "Symbol %s not resolved" symbol))) | ||
|
||
(defun cider-doc (&optional arg) | ||
|
This sentence should end with a
.
.