Use symbol plists instead of internal variables
More in line with Emacs' built-in practice of storing a variable's standard-value in a symbol property of the same name, with the added benefit of less global state.
This commit is contained in:
parent
464ce5ec02
commit
df10383a26
5 changed files with 18 additions and 18 deletions
|
@ -477,7 +477,7 @@ elsewhere."
|
|||
(when built-in
|
||||
(when (and (not ignore)
|
||||
(equal built-in '(quote prefer)))
|
||||
(setq built-in `(locate-library ,(symbol-name name) nil doom--initial-load-path)))
|
||||
(setq built-in `(locate-library ,(symbol-name name) nil (get 'load-path 'initial-value))))
|
||||
(plist-delete! plist :built-in)
|
||||
(plist-put! plist :ignore built-in))
|
||||
`(let* ((name ',name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue