Add function to start magit in current window
primarily for command line alias usage
This commit is contained in:
parent
120093f3ed
commit
c77c08250b
@ -473,7 +473,14 @@
|
|||||||
(use-package magit :ensure
|
(use-package magit :ensure
|
||||||
: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
|
||||||
|
(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
|
(use-package popwin :ensure
|
||||||
:disabled
|
:disabled
|
||||||
|
Loading…
Reference in New Issue
Block a user