aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules/bard-emacs-prog.el
diff options
context:
space:
mode:
Diffstat (limited to 'bard-emacs-modules/bard-emacs-prog.el')
-rw-r--r--bard-emacs-modules/bard-emacs-prog.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/bard-emacs-modules/bard-emacs-prog.el b/bard-emacs-modules/bard-emacs-prog.el
index 296fe63..e2a5598 100644
--- a/bard-emacs-modules/bard-emacs-prog.el
+++ b/bard-emacs-modules/bard-emacs-prog.el
@@ -101,6 +101,7 @@
;; Version control
(use-package magit
+ :ensure t
:config
(define-key global-map (kbd "C-c g") #'magit))
@@ -112,9 +113,12 @@
("C-j" . dired-jump)))
(use-package diff-hl
+ :ensure t
:after magit
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
- (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))
+ (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
+ :init
+ (add-hook 'prog-mode-hook 'diff-hl-mode))
(provide 'bard-emacs-prog)
;;; bard-emacs-prog.el ends here