views:

72

answers:

2

I am switching to Clojurebox to edit my clojure files. However I can't get the automatic alignment to work. I want the cursor to move two spaces after the line that I am editing when I hit return.

A: 

When you hit TAB when your mark is somewhere in a line, it (clojure-mode) indents the line you are on. Also you can mark a bunch of code with C-SPC + arrows and hit TAB to indent that.

Michiel Borkent
A: 

The key combination for newline-and-indent in Emacs is Ctrl-j.

harto