summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-git.el
blob: be4707bed2e3ba552d5d325ffa50d5cc7718ce26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(require 'fcuny-defuns)

(use-package gitconfig-mode
  :ensure t
  :defer 5)

(use-package magit
  :ensure t
  :commands magit-status
  :after (flyspell)
  :hook ((magit-mode . hl-line-mode))
  :bind (("C-x g s" . magit-status))
  :custom
  (git-commit-summary-max-length 50)
  (fill-column 72)
  (magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)
  (magit-completing-read-function 'ivy-completing-read)
  :config
  (when (fcuny/check-work-machine-p)
    (setq magit-git-executable "/opt/twitter_mde/bin/git")))

(provide 'fcuny-git)