Ar an naoiú lá de mí Eanair, scríobh Stephen J. Turnbull:
> >>>>> "Aidan" == Aidan Kehoe <kehoea(a)parhasard.net> writes:
> Aidan> - Add a default binding for manual-entry under Unix. (For
> Aidan> a few years there, it was the one entry in my init.el I
> Aidan> could least forego, and I would most have liked to be able
> Aidan> to take out.)
> I think the current "binding", which abbreviates nicely to "M-x man",
> is very natural and reasonably economical.
Six keystrokes (Alt, x, m, a, n, RET) vs, three for C-h C-m? (You only have
to press control once.) Bear in mind too, that people on BSD and many of the
commercial Unixes tend to use man pages a lot more because the lesser
influence from the gratuitous FSF incompatibility of Info means they’re
> If you have enhancements, such that you might have (say) a man minor
> mode that knows about MANPATH, apropos(1), whatis(1), etc, that would
> be another matter.
*exhales* ... this is what I have, and it’s very old, from before I cared
about getting lisp right, only about getting it running:
(defun apropos-man-page ()
"Run the Unix apropos command, outputting to an Emacs buffer."
(let ((val (read-from-minibuffer "Keyword: ")))
(shell-command (concat "apropos " val) "*apropos-man-page*")))
(global-set-key "\C-cm" 'manual-entry)
(global-set-key "\C-ca" 'apropos-man-page)
I can put something more comprehensive together--even looking at man.el now,
it seems that if you start the argument to manual-entry with “-k” it’ll do
the apropos thing automatically.
> C-h C-m is currently unused, though, so if there's a lot of interest
> in this that would be reasonable. However, that really should be
> coordinated with GNU Emacs if possible.
“Ah come on now Ted, a Volkswagen with a mind of its own, driving all over
the place and going mad, if that’s not scary I don’t know what is.”