fix(cli): doom-cli-load: replace load! w/ doom-load
load! effectively loads (file-name-concat (dir!) PATH) which, in this case, is concatenating two absolute file paths. Emacs does the right thing and loads PATH, but I don't want to rely on this good fortune as it could be broken in a future update.
This commit is contained in:
parent
f9201eb218
commit
71b2b09f5c
1 changed files with 1 additions and 1 deletions
|
@ -1437,7 +1437,7 @@ ARGS are options passed to less. If DOOMPAGER is set, ARGS are ignored."
|
|||
(path (locate-file-internal path doom-cli-load-path load-suffixes)))
|
||||
(doom-log "load: autoload %s" path)
|
||||
(let ((doom-cli--plist (doom-cli-plist cli)))
|
||||
(load! path))
|
||||
(doom-load path))
|
||||
(let* ((key (doom-cli-key cli))
|
||||
(cli (gethash key doom-cli--table)))
|
||||
(when (doom-cli-autoload cli)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue