Configure with-editor
This commit is contained in:
parent
79a9d5d6ac
commit
d6f3a00e26
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user