Only do with-editor stuff after with-editor loads
This commit is contained in:
parent
4928f304c6
commit
2e8e51584c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user