Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Clojure Documentation
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Undo
Redo
Keyboard Shortcuts Help
<h3><strong>Setup</strong></h3> <p>Install <a href="http://www.jedit.org/">JEdit</a> for your particular platform. Once installed, launch the JEdit application. Using the top-level menu open <strong>Plugins > Plugin Manager...</strong> switch to the <strong>Install</strong> tab and select <strong>Clojure</strong> and <strong>Clojure Shell</strong>. Click <strong>Install</strong>.</p> <h3><strong>REPL</strong></h3> <p>You can start a REPL with <strong>Plugins > Clojure Shell > Open Clojure Shell</strong>. In that submenu you will find other useful common commands.</p> <h3>Running Programs</h3> <p>Select <strong>Plugins > Console > Commando...</strong> In the window that opens select <strong>clojure</strong> from the drop down menu. You will see various options for running the current open file. Click <strong>Ok</strong> and your file will be run with those JVM settings.</p> <h3>Syntax Highlighting & Auto-indentation</h3> <p>First determine the platform dependent location of JEdit's mode files. For example, on OS X this will be <strong>~/Library/JEdit/modes</strong>. Download <a href="http://github.com/djspiewak/jedit-modes/blob/master/clojure.xml">Daniel Spiewak's Clojure mode file</a>. Put this in the your modes directory. You also need to edit the <strong>catalog</strong> file in your modes directory. Make it look like the following:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?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> </pre></td></tr></table> <p>You may need to restart JEdit.</p>
Attachments
Labels
Location
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced