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). 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. Commented May 5, 2022 at 16:05

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.