From 2e8e51584c19820733ce3aa2bbc1de54bd986e04 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 31 Jan 2021 07:46:37 -0500 Subject: [PATCH] Only do with-editor stuff after with-editor loads --- emacs/.emacs.d/init.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index e7fb8cb..9d69c46 100755 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1585,10 +1585,11 @@ Open files in Git forges (GitHub, GitLab, etc.): A utility from the author of Magit to run shell commands using the current Emacs instance as $EDITOR. #+BEGIN_SRC emacs-lisp - (shell-command-with-editor-mode) - (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) + (with-eval-after-load 'with-editor + (shell-command-with-editor-mode) + (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 * Password Store