-
Notifications
You must be signed in to change notification settings - Fork 1
/
magit.el
36 lines (30 loc) · 1.08 KB
/
magit.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; magit.el --- setup magit for emacs
;;; commentary:
;;; code:
;; Bottom of Emacs will show what branch you're on
;; and whether the local file is modified or not.
(use-package magit
:init (require 'magit-files)
:bind (("C-c M-g" . magit-file-dispatch))
:custom ;; Do not ask about this variable when cloning.
(magit-clone-set-remote.pushDefault t))
;; When we invoke magit-status, show green/red the altered lines, with extra
;; green/red on the subparts of a line that got alerted.
;;(system-packages-ensure "git-delta")
(use-package magit-delta
:ensure t
:hook (magit-mode . magit-delta-mode))
;; MA: The todo keywords work in code too!
(use-package magit-todos
:after magit
:after hl-todo
;; :hook (org-mode . magit-todos-mode)
:config
;; For some reason cannot use :custom with this package.
(custom-set-variables
'(magit-todos-keywords (list "TODO" "FIXME" "MA" "WK" "JC")))
;; Ignore TODOs mentioned in exported HTML files; they're duplicated from org src.
(setq magit-todos-exclude-globs '("*.html"))
(magit-todos-mode))
(provide 'magit)
;;; magit.el ends here