Use new emacs function to start magit without creating an extra window
This commit is contained in:
parent
ef6f3433f2
commit
9e8d3508ac
@ -6,7 +6,5 @@ alias ec="e -c"
|
|||||||
alias ecn="ec -n"
|
alias ecn="ec -n"
|
||||||
|
|
||||||
function magit() {
|
function magit() {
|
||||||
ecn -e '(progn (let ((old-frame (selected-frame)))
|
ecn -e '(magit-status-no-new-window "'"$(realpath ${1-.})"'")'
|
||||||
(magit-status "'"$(realpath ${1-.})"'")
|
|
||||||
(delete-frame old-frame)))'
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user