Using jEdit as %EDITOR% on Windows

With jEdit 4.2 (currently in development), jEdit can be used by other applications as an external editor. Using the -wait command line argument, jEdit can open a view and wait for the view or buffer to be closed before the process exits. Note that this works whether or not jEdit is already running.

With the following in my "AUTOEXEC.BAT" file, I can use jEdit to edit commit messages when using CVS or Subversion:

SET EDITOR=c:\j2sdk1.4.2b2\bin\java -jar c:\jEdit\jedit.jar -wait -newplainview

Note that this will NOT work using the jEdit Launcher for Windows, as that doesn't handle all command line arguments that jEdit supports.

posted June 26th, 2003