Search code examples
emacsmagit

Magit: change color of filename in diffs


I find it a little troublesome to distinguish filenames in Magits diffs. I would ideally like to have these in orange, so I can quickly identify where changes for a file begin.


Solution

  • You need to customize the magit-diff-file-heading face - do M-x customize-face and paste magit-diff-file-heading as name. In the dialog, select "Show all attributes", and customize it, for example, change Foreground to Orange