 ;;; C-c g l           Magit log
 ;;; C-c g f           Magit file log
 ;;; C-c g b           Toggle Magit blame mode
+;;; C-c g c           Magit clone
 ;;;
 ;;; C-c g down        Goto next hunk in buffer
 ;;; C-c g n           Goto next hunk in buffer

;;; C-c g r           Revert current hunk (asks for confirmation)

;;; Magit
(use-package magit)

(defun exordium-magit-log ()
  "If in `dired-mode', call `magit-dired-log'. Otherwise call

  (git-gutter:linum-setup)
  (diminish 'git-gutter-mode))

(use-package git-gutter-fringe
  :if (and exordium-git-gutter (not exordium-git-gutter-non-fringe))
  :config (exordium-global-git-gutter-mode t)
  :diminish
  :bind (:map exordium-git-map
              ("<down>" . 'git-gutter:next-hunk)
              ("n" . 'git-gutter:next-hunk)
              ("<up>" . 'git-gutter:previous-hunk)
              ("p" . 'git-gutter:previous-hunk)
              ("d" . 'git-gutter:popup-hunk)
              ("r" . 'git-gutter:revert-hunk))
  :init
  (add-hook 'git-gutter:update-hooks 'magit-revert-buffer-hook)
  )



;;; Git Timemachine
(use-package git-timemachine
  :defer t
  :bind
  (:map exordium-git-map ("t" . 'git-timemachine-toggle) )
  )

;;(define-key exordium-git-map (kbd "t") 'git-timemachine-toggle)


