tweak(org): have doom links use path for info
This commit is contained in:
parent
5ac2a5258b
commit
24f98d49ec
2 changed files with 16 additions and 19 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue