summary refs log tree commit diff stats
path: root/emacs/.emacs.d/main.el
diff options
context:
space:
mode:
authorAlan Pearce2019-07-10 18:40:12 +0200
committerAlan Pearce2019-07-10 18:40:12 +0200
commit38f8ec5f423ad82b4018869d5f9cdaf855f81cf2 (patch)
treec59e1c0383720ff339278f03854b94f1bcfb2199 /emacs/.emacs.d/main.el
parentd1bb2935e009b1596eb70c224d7fcf5a56211914 (diff)
downloaddotfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.tar.lz
dotfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.tar.zst
dotfiles-38f8ec5f423ad82b4018869d5f9cdaf855f81cf2.zip
Emacs: remove magit section highlighting
Diffstat (limited to 'emacs/.emacs.d/main.el')
-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 2bfdb2d..0b74fd6 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)