From aa63f7704b3a79533fa448a8eed3e2b1e0db27e8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 6 Aug 2016 20:37:07 +0200 Subject: [PATCH] Refine magit diffs --- emacs/.emacs.d/init.org | 10 ++++++++++ 1 file changed, 10 insertions(+) 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