When looking up documentation with describe-function
, Emacs display the docstring in a temporary help buffer. I want this buffer to replace current window.
So far, I've customized help-window-select
but it only affect the focus.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityWhen looking up documentation with describe-function
, Emacs display the docstring in a temporary help buffer. I want this buffer to replace current window.
So far, I've customized help-window-select
but it only affect the focus.
If you don't like how help-window-select works you can simply use this code:
(add-to-list 'display-buffer-alist
'("*Help*" display-buffer-same-window))
You can change "*Help*"
with a regexp matching other buffer names if you want to also affect apropos windows or shell
C-<down>
and C-<up>
)?
– Mathieu Marques
May 24 '16 at 18:15
display-buffer
for more details once you get off of mobile
– Jules
May 24 '16 at 18:28