Default behavior of man <command>
(opens inside less
) when q
is pressed it is closed.
I am using following to open MANPAGER
with emacs
:
emacsclient -nw -e "(let ((Man-notify-method 'bully)) (man \"$1\"))"
Here pressing q
closes buffer but does not close the emacs
like Ctrl-x Ctrl-c
does. Is it possible to bind q
into the same action Ctrl-x Ctrl-c
to exit the emacs
and get back to shell.
man
, I would think you'd be better off settingMan-notify-method
tonewframe
and then exiting by usingC-x 5 0
. You could even set a single key likeQ
(upper case) todelete-frame
. That way you would never accidentally leave Emacs altogether - sinceq
is such a useful key in many modes – gregoryg Jul 14 '20 at 15:23q
closes that opened buffer. Instead to be more clearQ
could be used, which also exists on the Man page vialess
– alper Jul 14 '20 at 15:31