Permalink
Browse files

Need to run this after Magit has loaded

  • Loading branch information...
bradwright committed Aug 18, 2013
1 parent c0a452f commit 3e1ac096997dbe430e62b34451ffcca0fc943975
Showing with 9 additions and 9 deletions.
  1. +9 −9 packages/init-magit.el
View
@@ -13,15 +13,6 @@
(use-package magit-blame
:bind ("C-c C-g b" . magit-blame-mode))
- (defun magit-maybe-commit (&optional show-options)
- "Runs magit-commit unless prefix is passed"
- (interactive "P")
- (if show-options
- (magit-key-mode-popup-committing)
- (magit-commit)))
-
- (define-key magit-mode-map "c" 'magit-maybe-commit)
-
;; we no longer need vc-git
(delete 'Git vc-handled-backends)
;; make magit status go full-screen but remember previous window
@@ -42,6 +33,15 @@
(when (eq 'magit-status-mode current-mode)
(jump-to-register :magit-fullscreen))))
+ (defun magit-maybe-commit (&optional show-options)
+ "Runs magit-commit unless prefix is passed"
+ (interactive "P")
+ (if show-options
+ (magit-key-mode-popup-committing)
+ (magit-commit)))
+
+ (define-key magit-mode-map "c" 'magit-maybe-commit)
+
;; major mode for editing `git rebase -i` files
(use-package rebase-mode)

0 comments on commit 3e1ac09

Please sign in to comment.