Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open *Man <pages>* in the same emacs window

Tags:

emacs

Why emacs always open *Man <man-name>* buffer in the other window instead of using the same window? How do I force it to open in current? same-window-regexps and same-window-buffer-names seemes to be unusefull.. - I can't force using the same window by customizing this variables.

like image 700
egor7 Avatar asked Oct 16 '11 22:10

egor7


1 Answers

You need to change the value of Man-notify-method. You can do this through M-x customize-group RET man RET The possible values are (mentioned here as the customize page doesn't have them):

newframe   -- put the manpage in its own frame (see `Man-frame-parameters')  
pushy      -- make the manpage the current buffer in the current window  
bully      -- make the manpage the current buffer and only window (sf)  
aggressive -- make the manpage the current buffer in the other window (sf)  
friendly   -- display manpage in the other window but don't make current (sf)  
polite     -- don't display manpage, but prints message and beep when ready  
quiet      -- like `polite', but don't beep  
meek       -- make no indication that the manpage is ready

Have a look at the man.el source code to see for yourself.

like image 167
pmr Avatar answered Sep 19 '22 22:09

pmr