fix(direnv): void-variable Info-directory-list error

Ref: purcell/envrc#117
Amend: b72fe2bd37
This commit is contained in:
Henrik Lissner
2025-09-16 00:43:54 -04:00
parent e87a92be75
commit 6a270b64d5

View File

@@ -23,6 +23,14 @@
(remove-hook 'after-change-major-mode-hook fn)
(add-hook 'change-major-mode-after-body-hook fn 100)))))
;; HACK: Now that Doom doesn't eagerly load `info' anymore, envrc--apply can't
;; get away with referencing `Info-directory-list' without guards or
;; deferral. See purcell/envrc#117.
;; REVIEW: Address this upstream.
(defadvice! +direnv--load-info-a (&rest _)
:before #'envrc--apply
(require 'info))
;; ...However, the above hack causes envrc to trigger in its own, internal
;; buffers, causing extra direnv errors.
(defadvice! +direnv--debounce-update-a (&rest _)