lang/sh: use (wo)man for docs lookup handler

i.e. Press K to look symbol at point up in man pages.
This commit is contained in:
Henrik Lissner 2021-02-23 19:22:22 -05:00
parent d2a5d2f2aa
commit 813f5da263
2 changed files with 11 additions and 0 deletions

View file

@ -36,3 +36,13 @@
(with-current-buffer "*shell*"
(rename-buffer (format "*shell [%s]*" dest-sh))
(current-buffer))))
;;;###autoload
(defun +sh-lookup-documentation-handler ()
"Look up documentation in `man' or `woman'."
(interactive)
(call-interactively
(if (executable-find "man")
#'man
#'woman))
(current-buffer))