;; Time-stamp: <2015-06-22 09:40:27 kmodi>

;; magit
;; https://github.com/magit/magit

(use-package magit
  :commands (magit-status)
  :preface
  (progn
    (setq magit-last-seen-setup-instructions "1.4.0"))
  :config
  (progn
    (setq magit-completing-read-function #'magit-ido-completing-read)
    (setq magit-auto-revert-mode         nil)
    (setq magit-expand-staged-on-commit  nil) ; default = nil
    (setq magit-repo-dirs                `( ,user-emacs-directory))
    (setq magit-diff-options             nil) ; default
    ;; (setq magit-diff-options             '("--ignore-space-change"))

    ;; Make diffs not show whitespace difference when calling `magit-show-level-4'
    ;; using the bindings like `4' in magit Status buffer
    (defun modi/magit-ignore-whitespace-diff (orig-fun &rest args)
      (let ((magit-diff-options '("--ignore-space-change")))
        (apply orig-fun args)))
    (advice-add 'magit-show-level-4 :around #'modi/magit-ignore-whitespace-diff)

    (magit-auto-revert-mode -1)))


(provide 'setup-magit)

;; |---------+----------------------------------|
;; | Binding | Description                      |
;; |---------+----------------------------------|
;; | j n     | Jump to Untracked section        |
;; | j u     | Jump to Unstaged section         |
;; | j s     | Jump to Staged section           |
;; | j p     | Jump to Unpushed section         |
;; | M-p     | Jump to previous sibling section |
;; | M-n     | Jump to next sibling section     |
;; |---------+----------------------------------|

;; Tip: Adding prefix to above jump commands also expands those sections and
;; brings that section to the top of the buffer.
;;   So `C-u j s' is analogous to doing `j s C-l C-l 4`

;; Time-stamp: <2015-07-01 20:49:28 kmodi>

;; magit
;; https://github.com/magit/magit

(use-package magit
  :commands (magit-status))


(provide 'setup-magit)

;; |---------+----------------------------------|
;; | Binding | Description                      |
;; |---------+----------------------------------|
;; | j n     | Jump to Untracked section        |
;; | j u     | Jump to Unstaged section         |
;; | j s     | Jump to Staged section           |
;; | j p     | Jump to Unpushed section         |
;; | M-p     | Jump to previous sibling section |
;; | M-n     | Jump to next sibling section     |
;; |---------+----------------------------------|

;; Tip: Adding prefix to above jump commands also expands those sections and
;; brings that section to the top of the buffer.
;;   So `C-u j s' is analogous to doing `j s C-l C-l 4`

Remove all old magit (v1.x) var customization
Remove all old magit (v1.x) var customization

kaushalmodi/.emacs.d,kaushalmodi/.emacs.d