tools/direnv: add README

This commit is contained in:
Henrik Lissner 2019-08-27 12:50:10 -04:00
parent 8ee474889f
commit 880c581c0d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 98 additions and 3 deletions

View file

@ -16,9 +16,10 @@
buffer/window/frame switch, which is less expensive."
(direnv--disable)
(when direnv-mode
(add-hook 'doom-switch-buffer-hook #'direnv--maybe-update-environment)
(add-hook 'doom-switch-window-hook #'direnv--maybe-update-environment)
(add-hook 'doom-switch-frame-hook #'direnv--maybe-update-environment))))
(add-hook! '(doom-switch-buffer-hook
doom-switch-window-hook
doom-switch-frame-hook)
#'direnv--maybe-update-environment))))
;; Fontify special .envrc keywords; it's a good indication of whether or not
;; we've typed them correctly.