Use new emacs function to start magit without creating an extra window

This commit is contained in:
Adam Goldsmith 2020-06-01 00:20:59 -04:00
parent ef6f3433f2
commit 9e8d3508ac

View File

@ -6,7 +6,5 @@ alias ec="e -c"
alias ecn="ec -n"
function magit() {
ecn -e '(progn (let ((old-frame (selected-frame)))
(magit-status "'"$(realpath ${1-.})"'")
(delete-frame old-frame)))'
ecn -e '(magit-status-no-new-window "'"$(realpath ${1-.})"'")'
}