diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-11-01 13:07:00 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-11-01 13:33:59 -0400 |
commit | d475d35affa2418dc6fe86fdb03fc4d296809e0f (patch) | |
tree | 32087e1b8a8fc035756f42b3c9208ae76cb4c7c6 /init | |
parent | 261d41f180a89c1962a671bbfaa7484ebd17a5bc (diff) | |
download | emacs.d-d475d35affa2418dc6fe86fdb03fc4d296809e0f.tar.gz |
Fullscreen magit status
Diffstat (limited to 'init')
-rw-r--r-- | init/km-magit.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/init/km-magit.el b/init/km-magit.el index 5b77aea..aa1621b 100644 --- a/init/km-magit.el +++ b/init/km-magit.el @@ -8,6 +8,15 @@ (define-key magit-status-mode-map (kbd "C-c C-u") 'km/magit-auto-commit) +;; http://whattheemacsd.com/setup-magit.el-01.html +(defadvice magit-status (around magit-fullscreen activate) + (window-configuration-to-register :magit-fullscreen) + ad-do-it + (delete-other-windows)) +(defadvice magit-mode-quit-window (around magit-restore-screen activate) + ad-do-it + (jump-to-register :magit-fullscreen)) + ;; http://whattheemacsd.com/setup-magit.el-05.html (defun km/magit-just-amend () (interactive) |