2

It is possible to automatically select *Help* buffers when they are displayed by doing (setq help-window-select t) (relevant question: How to close help buffer without moving to it?).

Is there a similar setting for *Apropos* buffers? When I use apropos using C-h a, the resulting apropos buffer is not automatically selected. I have to switch to it using C-x o. Is there a way to switch to the apropos buffer automatically?

1 Answer 1

1

You can add a function to apropos-mode-hook that selects the window for the Apropos buffer.

(defun my-apropos-select-window ()
  "..."
  (pop-to-buffer (current-buffer)))

(add-hook 'apropos-mode-hook #'my-apropos-select-window)
2
  • The next release of Emacs (the one right after Emacs 28.1) will use the value of help-window-select to control this behavior. Relevant commits: Make `M-x apropos' respect help-window-select (2022-04-30) and Document 'help-window-select' (2022-05-01).
    – Flux
    Commented May 5, 2022 at 7:13
  • @Flux: I think your comment belongs on the question, not on this answer. Or maybe you can post it as another answer.
    – Drew
    Commented May 5, 2022 at 16:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.