mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
fix(direnv): void-variable Info-directory-list error
Ref: purcell/envrc#117
Amend: b72fe2bd37
This commit is contained in:
@@ -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 _)
|
||||
|
Reference in New Issue
Block a user