Search code examples
emacsemacs-ediff

Is it possible to enable ediff features by default?


I often use ediff-directories to diff directories containing many c/c++ files. Whenever I enter a file I always '##' to ignore white space in the diff.

This becomes a problem when I have many files to diff. Is there any way to ignore white space automatically?


Solution

  • Try

    (setq-default ediff-ignore-similar-regions t)
    

    You may need

    (setq-default ediff-auto-refine 'on)
    

    as well.