diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1fa1d89..7f06816 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -480,10 +480,11 @@ :init (defun magit-status-no-new-window (directory) (interactive "D") - (progn (let ((magit-display-buffer-function - '(lambda (buffer) - (display-buffer buffer '(display-buffer-same-window))))) - (magit-status directory))))) + (let ((magit-display-buffer-function + '(lambda (buffer) + (display-buffer buffer '(display-buffer-same-window)))) + (default-directory directory)) + (magit-status)))) (use-package popwin :ensure :disabled