diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 876284755..d3b862515 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -60,15 +60,15 @@ ;; The woman-manpath default value does not necessarily match man. If we have ;; man available but aren't using it for performance reasons, we can extract ;; its manpath. - (let ((manpath (cond - ((executable-find "manpath") - (split-string (cdr (doom-call-process "manpath")) - path-separator t)) - ((executable-find "man") - (split-string (cdr (doom-call-process "man" "--path")) - path-separator t))))) - (when manpath - (setq woman-manpath manpath)))) + (when-let* + ((path (cond + ((executable-find "manpath") + (split-string (cdr (doom-call-process "manpath" "-q")) + path-separator t)) + ((executable-find "man") + (split-string (cdr (doom-call-process "man" "--path")) + path-separator t))))) + (setq woman-manpath path))) ;;;###package tramp