Don't attempt to use direnv when visting a remote file

This commit is contained in:
Jeremy Dormitzer 2019-10-29 10:47:41 -04:00
parent 888fec78d2
commit ebb47f69fd

View File

@ -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.