emacs - Magit fullscreen mode

This commit is contained in:
madmaurice 2017-10-17 11:40:14 +02:00
parent fdfe7eb072
commit 56f5b41257

View file

@ -452,7 +452,18 @@
:ensure t
:bind ("C-x g" . magit-status)
: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
(use-package undo-tree