summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-07-10 18:40:12 +0200
committerAlan Pearce2019-07-10 18:40:12 +0200
commit38f8ec5f423ad82b4018869d5f9cdaf855f81cf2 (patch)
treec59e1c0383720ff339278f03854b94f1bcfb2199
parentd1bb2935e009b1596eb70c224d7fcf5a56211914 (diff)
downloadnixfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.tar.lz
nixfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.tar.zst
nixfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.zip
Emacs: remove magit section highlighting
-rw-r--r--emacs/.emacs.d/main.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 2bfdb2d5..0b74fd66 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -281,7 +281,12 @@ With two prefix arguments, write out the day and month name."
   :commands (magit-status magit-dispatch)
   :custom ((global-magit-file-mode +1)
            (magit-section-visibility-indicator nil)
-           (magit-completing-read-function #'ivy-completing-read)))
+           (magit-diff-refine-hunk 'all)
+           (magit-completing-read-function #'ivy-completing-read))
+  :config (progn
+            (remove-hook 'magit-section-highlight-hook 'magit-section-highlight)
+            (remove-hook 'magit-section-highlight-hook 'magit-section-highlight-selection)
+            (remove-hook 'magit-section-highlight-hook 'magit-diff-highlight)))
 
 (eval-when-compile (require 'fringe-helper))
 (use-package git-gutter)