Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Setup

Install JEdit for your particular platform. Once installed, launch the JEdit application. Using the top-level menu open Plugins > Plugin Manager... switch to the Install tab and select Clojure and Clojure Shell. Click Install.

REPL

You can start a REPL with Plugins > Clojure Shell > Open Clojure Shell. In that submenu you will find other useful common commands.

Running Programs

Select Plugins > Console > Commando... In the window that opens select clojure from the drop down menu. You will see various options for running the current open file. Click Ok and your file will be run with those JVM settings.

Syntax Highlighting & Auto-indentation

First determine the platform dependent location of JEdit's mode files. For example, on OS X this will be ~/Library/JEdit/modes. Download Daniel Spiewak's Clojure mode file. Put this in the your modes directory. You also need to edit the catalog file in your modes directory. Make it look like the following:

Code Block
<?xml version="1.0"?>
<!DOCTYPE MODES SYSTEM "catalog.dtd">

<MODES>

<!-- Add lines like the following, one for each edit mode you add: -->
<!-- <MODE NAME="foo" FILE="foo.xml" FILE_NAME_GLOB="*.foo" /> -->
<MODE NAME="clojure" FILE="clojure.xml" FILE_NAME_GLOB="*.clj" />

</MODES>

You may need to restart JEdit.