Add function to start magit in current window

primarily for command line alias usage
This commit is contained in:
Adam Goldsmith 2020-06-01 00:18:51 -04:00
parent 120093f3ed
commit c77c08250b

View File

@ -473,7 +473,14 @@
(use-package magit :ensure
:bind (("C-x g" . magit-status)
(:map magit-status-mode-map (("i" . magit-gitignore-in-topdir)
("I" . magit-gitignore-in-gitdir)))))
("I" . magit-gitignore-in-gitdir))))
:config
(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)))))
(use-package popwin :ensure
:disabled