diff options
author | 2022-06-27 13:17:39 -0700 | |
---|---|---|
committer | 2022-06-27 13:17:39 -0700 | |
commit | 8efcf39a3975f2a65d8e34b8d4cf07179aecc5df (patch) | |
tree | 2ad82d626e727659c9924d112576a5915faad7c0 | |
parent | add Terraform support (diff) | |
download | doom-emacs-8efcf39a3975f2a65d8e34b8d4cf07179aecc5df.tar.xz |
add with-editor to terminal hooks
This supports setting `$EDITOR` within the invoked shells/terminals,
which should prevent attempting to run emacs inside of emacs.
-rw-r--r-- | config.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -82,3 +82,8 @@ (when (featurep! :tools lsp +eglot) (set-eglot-client! 'c-mode '("clangd" "-j=3" "--clang-tidy")) (set-eglot-client! 'terraform-mode '("terraform-ls" "serve"))) + +(add-hook 'shell-mode-hook 'with-editor-export-editor) +(add-hook 'eshell-mode-hook 'with-editor-export-editor) +(add-hook 'term-exec-hook 'with-editor-export-editor) +(add-hook 'vterm-mode-hook 'with-editor-export-editor) |