1

I can reproduce the following behavior with emacs -Q.

When I use m-x man , it opens the man page in another window. When only one window is open, it even splits the frame. More annoyingly, when I follow a link in the manpage, it follows it in a different window, not in the window that displays the *man* buffer.

Is it possible to configure the man command in such a way that it always uses the currently selected window, without using any packages if possible. Basically, I want it to behave as if I would always use C-x 4 1 M-x man.

1 Answer 1

1

The documentation for man says:

The variable ‘Man-notify-method’ defines how the buffer is displayed.

And the doc for this variable says:

Selects the behavior when manpage is ready. [...]

  • newframe -- put the manpage in its own frame (see ‘Man-frame-parameters’)
  • pushy -- make the manpage the current buffer in the current window
  • [...]

So you just have to set this variable to the value pushy

(setq Man-notify-method 'pushy) 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.