diff-hl also for terminal

This commit is contained in:
2022-01-16 22:26:01 +01:00
parent 306a7fc2a4
commit 03507476ec

View File

@@ -55,6 +55,7 @@
(use-package orgit
:after (magit org))
;; show diffs in fringes
(use-package diff-hl
:load-path (lambda() (concat config-dir "lisp/diff-hl"))
:hook (((prog-mode vc-dir-mode org-mode) . turn-on-diff-hl-mode)
@@ -64,5 +65,16 @@
;;(global-diff-hl-mode)
)
;; There's no fringe when Emacs is running in the console, but the
;; navigation and revert commands still work. Consider turning
;; diff-hl-margin-mode on, to show the indicators in the margin
;; instead.
(use-package diff-hl-margin
:after diff-hl
:unless (display-graphic-p)
:hook ((diff-hl-mode . diff-hl-margin-mode))
;;:config
)
(provide 'version-control-settings)
;;; version-control-settings.el ends here