Show magit-status in full-frame
This commit is contained in:
parent
0e22612302
commit
5c62bdc850
1 changed files with 14 additions and 0 deletions
|
@ -14,3 +14,17 @@ has changed on a line.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq magit-diff-refine-hunk 'all)
|
(setq magit-diff-refine-hunk 'all)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Make the magit status buffer always open as the only window in Emacs.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defvar oni:magit-status-rx
|
||||||
|
(rx bos "*magit: "))
|
||||||
|
|
||||||
|
(defun oni:display-buffer-in-only-window (buffer alist)
|
||||||
|
(delete-other-windows)
|
||||||
|
(display-buffer-same-window buffer alist))
|
||||||
|
|
||||||
|
(add-to-list 'display-buffer-alist
|
||||||
|
`(,oni:magit-status-rx oni:display-buffer-in-only-window))
|
||||||
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue