Skip to main content
edited tags
Link
edited tags
Link
Malabarba
  • 23.3k
  • 6
  • 81
  • 166
Source Link

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like:

emacs -f ediff-files file1 file2

But when I do this, it doesn't take file1 and file2 as the two files to diff. Rather, emacs prompts me for the files to difference.

Does anyone know how to do this in one command line?