summaryrefslogtreecommitdiff
path: root/init/km-git.el
blob: a80feed7b20e7750430ffe7a4ba9cf87e50d1433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(require 'git-annex)

(setq git-annex-commit nil)

(require 'magit)

(defun km/magit-auto-commit ()
  (interactive)
  (save-window-excursion
    (magit-with-refresh
      (shell-command "git --no-pager commit --all --message=auto"))))

(define-key magit-status-mode-map (kbd "C-c C-u") 'km/magit-auto-commit)

;; http://whattheemacsd.com/setup-magit.el-01.html
(defadvice magit-status (around magit-fullscreen activate)
  ad-do-it
  (delete-other-windows))

(setq magit-restore-window-configuration t)

(setq magit-default-tracking-name-function 'magit-default-tracking-name-branch-only)

(setq magit-expand-staged-on-commit t)
(setq magit-log-show-margin nil)