From 16d4000a6acb1e60e85e62fefb225ddb5ae82074 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 5 Jul 2020 13:28:55 -0700 Subject: [PATCH] emacs: Enable with-editor in terminals --- .emacs.d/init.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index cd9536a..59c335b 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -226,10 +226,13 @@ nice for pinning a dired buffer to the side to use as a file browser. Install magit, the emacs porcelain for git. #+BEGIN_SRC emacs-lisp - (use-package magit - :custom (magit-bury-buffer-function 'magit-mode-quit-window)) + (use-package magit + :custom (magit-bury-buffer-function 'magit-mode-quit-window)) - (use-package with-editor) + (use-package with-editor + :init (add-hook 'shell-mode-hook 'with-editor-export-editor) + (add-hook 'term-exec-hook 'with-editor-export-editor) + (add-hook 'eshell-mode-hook 'with-editor-export-editor)) #+END_SRC *** Terminals (=multi-Term=)