I basically want what this question asks for. Unfortunately, its answers don't work.
For example, when I do what its most-upvoted answer says, and enter man echo
, Emacs opens up and the mini buffer says:
Symbol's function definition is void: \(man\ \"echo\"\)
The only window in Emacs is blank.
The linked question doesn't help either.
I normally use Emacs with its GUI but want to view man pages in the terminal.
Setting the variable $PAGER
to emacs
doesn't work either. First of all, it's empty or unset by default. If I change it to emacs
, subsequent calls to man
do result in Emacs (GUI) opening but the scratch buffer is shown, just as if I would normally launch Emacs (I disabled the welcome page, that's why the scratch buffer is shown).
I know that I can launch Emacs, press C-x
, enter man
, and then enter the name of the man page I want to read. But that takes quite some time and just entering man <page name>
into a terminal is much faster.
My computer runs Ubuntu 16.04 (with Linux 4.4.0) and GNU Emacs 24.5.1.
type emacs
return on your system?emacs is /usr/bin/emacs