emacsfodder / emacs-theme-darktooth

Darktooth : From the darkness... it watches.
GNU General Public License v3.0
319 stars 31 forks source link

Add diff refine colors #51

Closed galaunay closed 7 years ago

galaunay commented 7 years ago

Add diff-refine-added and diff-refine-removed colors. Quite useful when using magit with hunk refinement. Without those colors, the refinement background and foreground colors were nearly the same, making them difficult to read.

Screenshot of magit with hunk refinement: screenshot_20170715_163706

jasonm23 commented 7 years ago

Thank you, that's great.

ninrod commented 7 years ago

Wait. @galaunay, how do you exactly configure magit to use "hunk refinement"?

edit: ok so with (setq magit-diff-refine-hunk 'all) I get to see the refined hunks in magit.

galaunay commented 7 years ago

@ninrod You can also use locally magit-diff-toggle-refine-hunk, which is bound to "Dt" in my evil configuration.

ninrod commented 7 years ago

hum, do you use evil-magit?

galaunay commented 7 years ago

Yes, that was what I meant when I said "evil configuration". 'D' is linked to magit-diff-refresh-popup for me, then 't' trigger magit-diff-toggle-refine-hunk.

ninrod commented 7 years ago

and by doing that, is the configuration now permanent for you?

galaunay commented 7 years ago

No, I think it is set buffer-locally, so it just sticks as long as I don't kill the magit buffer. It behaves differently for you ?