Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Need to run this after Magit has loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwright committed Aug 18, 2013
1 parent c0a452f commit 3e1ac09
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/init-magit.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 3e1ac09

Please sign in to comment.