I want to open manuals directly in Terminal to Emacs by
man man
I put the following code as an alias in .zshrc unsuccessfully
alias man=x
unalias man
man() { emacs ^x man }
How can you open manuals to emacs?
On
alias man 'emacs -e man'
Check out this part of the info pages (and the following sections) for more information.
Perhaps this is what you mean:
The
setqis there just to make the manual page hide the*scratch*buffer; if you don't want that, it is enough to doIf you want to call Emacs functions from the command line, you must write the function call in elisp; you can't just give Emacs key sequences on the command line.