Add first vcs (git) config
This commit is contained in:
9
lisp/init-vcs.el
Normal file
9
lisp/init-vcs.el
Normal file
@@ -0,0 +1,9 @@
|
||||
;;; init-vcs.el --- initializes version control systems -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(load-all-files-from-dir (path-join *user-emacs-lisp-directory* "vcs"))
|
||||
|
||||
|
||||
(provide 'init-vcs)
|
||||
;;; init-vcs.el ends here
|
27
lisp/vcs/git.el
Normal file
27
lisp/vcs/git.el
Normal 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
|
Reference in New Issue
Block a user