By default Return is bound to the command newline which does not
indent.  If you press the Tab key, you'll be placed at the correct
indentation spot.  To make this automatic, you need to rebind Return
to newline-and-indent:

(global-set-key (kbd "C-m") 'newline-and-indent)

Hope this helps.

Vincent

On Jan 15, 2:27 am, Kyle Smith <mr.kyle.sm...@gmail.com> wrote:
> Hello,
>
> I'm new to Clojure, SLIME, and emacs in general but I've noticed my
> SLIME REPL does not indent properly when I use <return> or C-j. This
> is the error message I see:
>
> "calculate-lisp-indent: Symbol's function definition is void: clojure-
> indent-function"
>
> I've experienced this when setting up Clojure + SLIME via .emacs and
> also when running Clojure Box. When I open a .clj file indentation
> works just fine. I just have trouble with the SLIME REPL.
>
> One thing I noticed is if I evaluate the function clojure-indent-
> function, function clojure-backtracking-indent, and custom clojure-
> mode-use-backtracking-indent (from clojure-mode.el) within the
> *scratch* buffer my SLIME REPL will indent correctly.
>
> I've seen a few posts with similar problems but I haven't found a
> solution that works.
>
> Thanks,
> Kyle
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to