tweak(org): have doom links use path for info

This commit is contained in:
TEC 2022-09-26 02:39:26 +08:00 committed by Henrik Lissner
parent 5ac2a5258b
commit 24f98d49ec
2 changed files with 16 additions and 19 deletions

View file

@ -542,11 +542,10 @@ relative to `org-directory', unless it is an absolute path."
;; Add "lookup" links for packages and keystrings; useful for Emacs
;; documentation -- especially Doom's!
(letf! ((defun -call-interactively (fn)
(lambda (link)
(let ((desc (+org-link-read-desc-at-point link)))
(funcall
fn (or (intern-soft desc)
(user-error "Can't find documentation for %S" desc))))))
(lambda (path _prefixarg)
(funcall
fn (or (intern-soft path)
(user-error "Can't find documentation for %S" path)))))
(defun -eldoc-fn (label face)
(lambda (context)
(format "%s %s"