summaryrefslogtreecommitdiff
path: root/emacs-config.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-config.org')
-rw-r--r--emacs-config.org26
1 files changed, 26 insertions, 0 deletions
diff --git a/emacs-config.org b/emacs-config.org
index 55a02a4..abcb652 100644
--- a/emacs-config.org
+++ b/emacs-config.org
@@ -1750,3 +1750,29 @@ Completion kind text/icon prefix labelling for emacs in-region completion.
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
#+end_src
+** Diff-hl
+#+begin_src elisp
+ (use-package diff-hl
+ :custom
+ (diff-hl-margin-symbols-alist '((insert . "+")
+ (delete . "-")
+ (change . "~")
+ (unknown . "?")
+ (ignored . "i")))
+
+ :custom-face
+ (diff-hl-margin-insert
+ ((t (:inherit nil :weight bold :background "unspecified-bg" :foreground "green"))))
+ (diff-hl-margin-change
+ ((t (:inherit nil :weight bold :background "unspecified-bg" :foreground "goldenrod"))))
+ (diff-hl-margin-delete
+ ((t (:inherit nil :weight bold :background "unspecified-bg" :foreground "red"))))
+
+ :config
+ (global-diff-hl-mode)
+ (diff-hl-margin-mode)
+ (diff-hl-flydiff-mode)
+
+ :hook (dired-mode . diff-hl-dired-mode))
+#+end_src
+