From 8efcf39a3975f2a65d8e34b8d4cf07179aecc5df Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Mon, 27 Jun 2022 13:17:39 -0700 Subject: 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. --- config.el | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3