From 9e8d3508ac47e6e3997a74af00ad8a486134aa9d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 1 Jun 2020 00:20:59 -0400 Subject: [PATCH] Use new emacs function to start magit without creating an extra window --- .aliases/command-specific/emacsclient | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.aliases/command-specific/emacsclient b/.aliases/command-specific/emacsclient index 6f86af3..94ca28b 100644 --- a/.aliases/command-specific/emacsclient +++ b/.aliases/command-specific/emacsclient @@ -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-.})"'")' }