aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-08-06 20:37:07 +0200
committerGravatar Tom Willemse2016-08-06 20:37:07 +0200
commitaa63f7704b3a79533fa448a8eed3e2b1e0db27e8 (patch)
tree0bebf36800c404b35b885ec01675e82687faf07f /emacs
parenta18275ae1b7cc738b1aa5bceee6de668979be3c6 (diff)
downloadnew-dotfiles-aa63f7704b3a79533fa448a8eed3e2b1e0db27e8.tar.gz
new-dotfiles-aa63f7704b3a79533fa448a8eed3e2b1e0db27e8.zip
Refine magit diffs
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index eda6540..903bdff 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -520,6 +520,16 @@ To start off, first I need to enable lexical binding.
(ensure-library magit)
#+END_SRC
+ Show refined diffs in magit. This makes it much easier to see
+ /what/ has changed on a line.
+
+ #+BEGIN_SRC emacs-lisp
+ (eval-when-compile (require 'magit))
+
+ (with-eval-after-load 'magit
+ (setq magit-diff-refine-hunk 'all))
+ #+END_SRC
+
** Gnus
Gnus is one of the most extensible Email programs on the