mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Merge pull request #4110 from drchsl/magit-improve-readme
tools/magit: add magit-diff-refine-hunk to readme
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
- [[#features][Features]]
|
- [[#features][Features]]
|
||||||
- [[#configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#enable-gravatars][Enable Gravatars]]
|
- [[#enable-gravatars][Enable Gravatars]]
|
||||||
|
- [[#enable-granular-diff-highlights-for-all-hunks][Enable granular diff-highlights for all hunks]]
|
||||||
- [[#troubleshooting][Troubleshooting]]
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
@ -62,5 +63,16 @@ This will enable gravatars when viewing commits. The service used by default is
|
|||||||
(setq magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
(setq magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Enable granular diff-highlights for all hunks
|
||||||
|
|
||||||
|
By default, changes are highlighted *linewise* for all but the selected hunk. This
|
||||||
|
has [[https://magit.vc/manual/magit/Performance.html][performance reasons]]. You can enable character-wise highlights for all
|
||||||
|
visible hunks with:
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(after! magit
|
||||||
|
(setq magit-diff-refine-hunk 'all))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* TODO Troubleshooting
|
* TODO Troubleshooting
|
||||||
# Common issues and their solution, or places to look for help.
|
# Common issues and their solution, or places to look for help.
|
||||||
|
Reference in New Issue
Block a user