Only do with-editor stuff after with-editor loads

This commit is contained in:
Jeremy Dormitzer 2021-01-31 07:46:37 -05:00
parent 4928f304c6
commit 2e8e51584c

View File

@ -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