Add first vcs (git) config

This commit is contained in:
2022-06-05 22:17:02 +02:00
parent 5650593aa5
commit 6b908cb1dd
2 changed files with 36 additions and 0 deletions

27
lisp/vcs/git.el Normal file
View File

@@ -0,0 +1,27 @@
;;; git.el --- Git integration -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(defun user--git-config ()
"Initialize Git support."
(message "user--git-config")
(use-package magit
:ensure t
:defer
:config
;; https://github.com/dandavison/magit-delta
;; Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
(use-package magit-delta
:ensure t
:if (executable-find "delta")
:hook (magit-mode . magit-delta-mode))
)
)
(with-executable 'git
(user--git-config))
(provide 'vcs/git)
;;; git.el ends here