emacs - Magit fullscreen mode
This commit is contained in:
parent
fdfe7eb072
commit
56f5b41257
1 changed files with 12 additions and 1 deletions
|
@ -452,7 +452,18 @@
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind ("C-x g" . magit-status)
|
:bind ("C-x g" . magit-status)
|
||||||
:config
|
:config
|
||||||
(evil-set-initial-state 'git-commit-mode 'insert))
|
;; Use insert mode in commit window
|
||||||
|
(evil-set-initial-state 'git-commit-mode 'insert)
|
||||||
|
;; Magit fullscreen
|
||||||
|
(defadvice magit-status (around magit-fullscreen activate)
|
||||||
|
(window-configuration-to-register :magit-fullscreen)
|
||||||
|
ad-do-it
|
||||||
|
(delete-other-windows))
|
||||||
|
(defun magit-quit-fullscreen ()
|
||||||
|
(interactive)
|
||||||
|
(kill-buffer)
|
||||||
|
(jump-to-register :magit-fullscreen))
|
||||||
|
(define-key magit-status-mode-map (kbd "q") 'magit-quit-fullscreen))
|
||||||
|
|
||||||
;; Undo-Tree
|
;; Undo-Tree
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
|
|
Loading…
Reference in a new issue