-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added cider-docview-select-buffer custom variable #1995
Conversation
Added cider-docview-select-buffer custom variable to control if the documentation viewer popup will be autoselected after opening.
@@ -96,6 +96,11 @@ | |||
:group 'cider-docview-mode | |||
:package-version '(cider . "0.7.0")) | |||
|
|||
(defcustom cider-docview-select-buffer t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not really related to cider-docview-mode
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about changing group to cider-doc
?
"Autoselect the documentation viewer after popup." | ||
:type 'boolean | ||
:group 'cider-docview-mode | ||
:package-version '(cider . "0.7.0")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it wasn't introduced in CIDER 0.7. :-)
The name of the variable is misleading as it's not really related to docview mode at all. It's controlling whether the doc buffer would be selected or not. I'm curious why do you want this? You know pressing |
So maybe naming it as When browsing code I find useful to map A better yet behavior for me is to have the doc window always opened and make it autorefresh with the documentation for the function at point, without pressing any key (and without autoselecting the doc window). |
I see. That workflow is a bit odd and doesn't sound like something pleasant to me. I think you actually need #1982 |
the libs on #1982 open the documentation inside the code buffer, I like to get it always in the same separated emacs window as cider does with my described workflow. |
Isn't it preferable not to need a dedicated buffer for this? Seems like a waste of space to me, but I might be missing something... |
Is a matter of personal preference, I like to have an "static" layout, so my docs are always in the same place and not popping over the code buffer or opening/closing windows. |
I see. Well, I'd make this consistent with:
so This should be reflected in the changelog as well. |
(defcustom cider-docview-select-buffer t | ||
"Autoselect the documentation viewer after popup." | ||
:type 'boolean | ||
:group 'cider-docview-mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be cider-doc
.
Feel free to open a new PR. |
Added cider-docview-select-buffer custom variable to control if the documentation viewer popup will be autoselected after opening.