* access different Unix's man pages locally from Emacs
@ 2020-05-23 1:28 Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; only message in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-05-23 1:28 UTC (permalink / raw)
To: help-gnu-emacs
If you have access to other Unix systems, it is
likely you run into problems because they don't use
GNU programs. To read a man page over ssh isn't sharp
compared to doing it with the No. 1 Emacs instance -
IMO - so I got the whole thing and put it to
/usr/share/man/ with a sensible name (i.e., openbsd
and sunos), then you can access it from the local
shell with 'man -m openbsd ls' or 'man -m sunos ls'
for the OpenBSD 6.6 (ah, actually they didn't update)
and SunOS 5.10 ls man pages, respectively.
Here is the code - _not complicated_ in terms of code
but very useful.
(defun man-openbsd (page)
(interactive "spage: ")
(man (concat "-m openbsd " page) ))
(defalias 'mano #'man-openbsd)
(defun man-sunos (page)
(interactive "spage: ")
(man (concat "-m sunos " page) ))
(defalias 'mans #'man-sunos)
Some technobabble while I did this:
<incal> yeah! got the SunOS man pages working,
'sudo cp man /usr/share/man/sunos' then
'man -m sunos ls' to get the SunOS 5.10
ls(1) man page! OK, so we know Linux and
GNU people are maximalists under the hood
of minimalism
<https://dataswamp.org/~incal/swamp-imgs/incal-desktop.png>,
OpenBSD people are correct and secure ...
which seems to mean (in part) fewer packs
and very few options compared to the GNU
toolchain - but many options seems to
<incal> be the case for SunOS as well! GNU ls man
page lines: 253, BSD ditto: 291,
SunOS: 737 (!)
<incal> Emacs helpers, line 15-23:
<https://dataswamp.org/~incal/emacs-init/man-my.el>
pZ
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-23 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-23 1:28 access different Unix's man pages locally from Emacs Emanuel Berg via Users list for the GNU Emacs text editor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.