mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Bind SPC h w to +default/man-or-woman #639
Woman is essentially elisp-only Man; useful for systems without man (Windows, particularly).
This commit is contained in:
@ -68,3 +68,12 @@ If ARG (universal argument), runs `compile' from the current directory."
|
||||
(if arg
|
||||
#'projectile-compile-project
|
||||
#'compile))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/man-or-woman ()
|
||||
"Invoke `man' if man is installed, otherwise use `woman'."
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(if (executable-find "man")
|
||||
#'man
|
||||
#'woman)))
|
||||
|
Reference in New Issue
Block a user