summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2022-06-27 13:17:39 -0700
committerLibravatar Terin Stock <terinjokes@gmail.com>2022-06-27 13:17:39 -0700
commit8efcf39a3975f2a65d8e34b8d4cf07179aecc5df (patch)
tree2ad82d626e727659c9924d112576a5915faad7c0
parentadd Terraform support (diff)
downloaddoom-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.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.el b/config.el
index e054c66..a16e4e6 100644
--- a/config.el
+++ b/config.el
@@ -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)