Don't attempt to use direnv when visting a remote file
This commit is contained in:
parent
888fec78d2
commit
ebb47f69fd
@ -2750,11 +2750,13 @@ The Emacs Multi-Media System. For libtag to work, libtag must be installed on th
|
||||
|
||||
(use-package direnv
|
||||
:if (executable-find "direnv")
|
||||
:config (direnv-mode)
|
||||
:config
|
||||
(direnv-mode)
|
||||
(add-hook 'eshell-mode-hook #'direnv-update-directory-environment)
|
||||
(add-hook 'eshell-directory-change-hook #'direnv-update-directory-environment)
|
||||
;; (add-buffer-mode-hook 'cider-repl-mode #'update-cider-env)
|
||||
)
|
||||
(add-hook 'eshell-directory-change-hook
|
||||
(lambda ()
|
||||
(unless (file-remote-p default-directory)
|
||||
(direnv-update-directory-environment)))))
|
||||
#+END_SRC
|
||||
* SQL
|
||||
Emacs has excellent built-in SQL support.
|
||||
|
Loading…
Reference in New Issue
Block a user