I just added the following line to my init.el
:
(global-set-key (kbd "M-o") 'man)
but it is not enough. Before, if I wanted to perform the shell command equivalent to man 2 read
I would do M-x man RET 2 read
. Emacs doesn't to like the numbers and spaces, and takes multiple seconds to load it up, whereas M-x man RET read
is instantaneous, but not what I want.
What is an easy way to grab a specific numbered man page?
Something where I can see all the reads would be ideal, so that I could do something like M-n
within man-mode
to browse through my options, or even something that can see whether I'm in a shell
buffer, or in C
mode and grab the relevant man page.