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:
parent
faf8bb7e9f
commit
1b49c700c8
@ -475,7 +475,7 @@
|
|||||||
:bind (("C-x g" . magit-status)
|
:bind (("C-x g" . magit-status)
|
||||||
(:map magit-status-mode-map (("i" . magit-gitignore-in-topdir)
|
(:map magit-status-mode-map (("i" . magit-gitignore-in-topdir)
|
||||||
("I" . magit-gitignore-in-gitdir))))
|
("I" . magit-gitignore-in-gitdir))))
|
||||||
:config
|
:init
|
||||||
(defun magit-status-no-new-window (directory)
|
(defun magit-status-no-new-window (directory)
|
||||||
(interactive "D")
|
(interactive "D")
|
||||||
(progn (let ((magit-display-buffer-function
|
(progn (let ((magit-display-buffer-function
|
||||||
|
Loading…
Reference in New Issue
Block a user