On Sat, 21 Jan 2012 14:29:23 +0900, Miles Bader <[email protected]> wrote:
> Hmm, OK, I added this feature locally, it works great!
>
> I submitted a github pull request with my change... hopefully I'm
> following the correct procedure... :]
>
I've been using this snippet for quite some time now:
#+begin_src emacs-lisp
(global-set-key (kbd "C-c /") '(lambda()
"Refine display of unified diff hunks"
(interactive)
(save-excursion
(goto-char (point-min))
(while (re-search-forward
diff-hunk-header-re-unified
nil t)
(diff-refine-hunk)))))
#+end_src
Works pretty much anywhere (i.e. outside of Magit as well).
> -Miles
>
> --
> Any man who is a triangle, has thee right, when in Cartesian Space,
> to have angles, which when summed, come to know more, nor no less,
> than nine score degrees, should he so wish. [TEMPLE OV THEE LEMUR]
>
Peace
--
Pieter