diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-01-29 23:34:49 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-01-29 23:34:49 -0500 |
commit | 8654c7460538ea580bc6c80cb15f93ae14cadae1 (patch) | |
tree | bccb8d36dd3b0d5835a7195d7ddf19b3bd9bc255 /lisp | |
parent | dbfe526b1e96eb825084d8d4f6da31160878d97f (diff) | |
download | emacs.d-8654c7460538ea580bc6c80cb15f93ae14cadae1.tar.gz |
Use hook for fullscreen Magit
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) |