Configure with-editor

This commit is contained in:
Jeremy Dormitzer 2021-02-22 17:07:11 -05:00
parent 79a9d5d6ac
commit d6f3a00e26

View File

@ -16,6 +16,15 @@
"gg" #'magit-file-dispatch
"gd" #'magit-dispatch))
;; Not strictly git-related, but with-editor is the part of Magit that
;; lets Emacs be the $EDITOR for shell commands
(use-package with-editor
:hook ((eshell-mode . with-editor-export-editor)
(shell-mode . with-editor-export-editor)
(vterm-mode . with-editor-export-editor))
:commands (with-editor-async-shell-command
with-editor-shell-command))
;; git-link makes it easy to copy the GitHub URL of the current file/line
(use-package git-link
:commands (git-link git-link-commit)