diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-git.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 65943d3..2ca4d96 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -1,5 +1,7 @@ -(require-package 'magit) -(require-package 'git-commit-mode) +(add-to-list 'load-path "~/src/emacs/git-modes") +(add-to-list 'load-path "~/src/emacs/magit") +(require 'magit) + (require-package 'git-annex) (require 'git-annex) @@ -19,13 +21,13 @@ Useful for non-source code repos (e.g., Org mode note files)." (let ((remote (magit-read-remote "Remote"))) (magit-run-git-async "push" "-v" remote "--all"))) -(eval-after-load 'magit - '(progn - (magit-key-mode-insert-action 'committing - "u" "Auto commit" 'km/magit-auto-commit) - (magit-key-mode-insert-action 'pushing - "a" "Push all" 'km/magit-push-all) - (diminish 'magit-auto-revert-mode))) +(magit-define-popup-action 'magit-commit-popup + ?u "Auto commit" 'km/magit-auto-commit) +(magit-define-popup-action 'magit-push-popup + ?a "Push all" 'km/magit-push-all) + + +(diminish 'magit-auto-revert-mode) ;; http://whattheemacsd.com/setup-magit.el-01.html (defadvice magit-status (around magit-fullscreen activate) |