Allow launching magit-status-no-new-window as initial command

..or just before magit. If it's in the `:config`, the command won't
exist until magit is loaded.
This commit is contained in:
Adam Goldsmith 2020-07-12 17:00:20 -04:00
parent faf8bb7e9f
commit 1b49c700c8

View File

@ -475,7 +475,7 @@
:bind (("C-x g" . magit-status)
(:map magit-status-mode-map (("i" . magit-gitignore-in-topdir)
("I" . magit-gitignore-in-gitdir))))
:config
:init
(defun magit-status-no-new-window (directory)
(interactive "D")
(progn (let ((magit-display-buffer-function