From 8654c7460538ea580bc6c80cb15f93ae14cadae1 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 29 Jan 2015 23:34:49 -0500 Subject: Use hook for fullscreen Magit --- lisp/init-git.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lisp/init-git.el') 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) -- cgit v1.2.3