forked from coderifous/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy-git.el
23 lines (20 loc) · 789 Bytes
/
my-git.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; Git
(add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/magit"))
(autoload 'magit-status "magit" nil t)
(add-hook
'magit-mode-hook
(lambda ()
(setq yas/dont-activate t)
))
(eval-after-load 'magit
'(progn
(set-face-foreground 'magit-diff-add "green3")
(set-face-foreground 'magit-diff-del "red3")
(set-face-background 'magit-item-highlight "gray15")
(define-key magit-mode-map (kbd "M-3") 'split-window-horizontally) ; was magit-show-level-3
(define-key magit-mode-map (kbd "M-2") 'split-window-vertically) ; was magit-show-level-2
(define-key magit-mode-map (kbd "M-1") 'delete-other-windows) ; was magit-show-level-1
(defun magit-pull ()
(interactive)
(magit-run-git-async "pull" "--rebase" "-v"))
))