diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-git.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 57069d1..356f9e9 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -22,6 +22,8 @@ magit-log-show-margin nil) (add-hook 'magit-find-file-hook 'view-mode) +;; http://whattheemacsd.com/setup-magit.el-01.html +(add-hook 'magit-status-mode-hook 'delete-other-windows) (after 'magit (remove-hook 'magit-refs-sections-hook 'magit-insert-tags) @@ -145,11 +147,6 @@ START-POINT set to the current branch. (while (derived-mode-p 'magit-mode) (magit-mode-quit-window kill-buffer))) -;; http://whattheemacsd.com/setup-magit.el-01.html -(defadvice magit-status-internal (around magit-fullscreen activate) - ad-do-it - (delete-other-windows)) - (defun km/git-rebase-show-commit () "Show the commit on the current line if any. Unlike `git-rebase-show-commit', display (but don't switch to) |