I am using emacs to read man pages.
macsman() {
emacsclient -nw -e "(let ((Man-notify-method 'bully)) (man \"$1\"))"
}
alias man=macsman
(define-key Man-mode-map "q" 'save-buffers-kill-emacs)
While man buffer is opened, when I press q it usually exits.
It is bound to
If the current frame has no client, kill Emacs itself using ‘save-buffers-kill-emacs’.
After running ex: man ls and pressing "q" in order to exit and get back to my shell, I find myself in *Messages* buffer, than pressing q again opens the man page again, and finally pressing q exits emacs. What may be the reason of this?
Would it be possible to exit right away by preventing opening *Messages* buffer?