Hi Mark,

I don't use Clojure Box or Windows; however, your questions relate
mostly to Emacs/SLIME, so I've answered the ones I could below.
Incidentally, all of these answers could have been found by reading
the SLIME and/or Emacs documentation.

On Sun, Dec 7, 2008 at 11:45 AM, Mark Engelberg
<[EMAIL PROTECTED]> wrote:
> I'm using Clojure Box on Windows.  It's working well for me, but I
> have a number of questions:
>
> 1.  I see that you can use C-c C-c to feed the definition your cursor
> is on to the REPL.  How do you feed the entire file to the REPL?

C-c C-k

> 2.  How do I restart the REPL, so that any definitions are erased and
> I can start from scratch?

In the REPL type:
,restart-inferior-lisp

Note: the leading comma is a "shortcut" key that is used to initiate
various slime repl commands.

> 3.  If something in the REPL is running in an infinite loop, how do I
> interrupt evaluation?

C-c C-c usually works for me (not sure about Windows)

> 4.  I see that I can set Emacs to use CUA-style cut and paste, but I
> have to set this every time I start it up.  How can I make this
> setting "stick"?

Put the following statement in your .emacs file:
(cua-mode t)

> 5.  Is there a way to split the window vertically, rather than horizontally?

C-x 3

> 6.  Is there a way to make the "enter" key automatically indent to the
> correct location on the next line?

To do this when editing clojure files using slime, put the following
in your .emacs file:
(define-key slime-mode-map (kbd "<return>") 'newline-and-indent)
(define-key slime-mode-map (kbd "C-j") 'newline)

> 7.  Is there a way to make a left paren, bracket, or brace
> automatically type the corresponding right paren/bracket/brace and
> position the cursor between them?

Yes, use paredit (it's included with clojure-mode). Just add the
following to your .emacs file:
(require 'clojure-paredit)

> 8.  Any error triggered in the REPL requires "drilling down" to see
> the actual error, and then a number of "aborts" to get back to the
> REPL.  Any way to simplify this process?

Usually, the relevant error is displayed in the first line so you can
just press 'q' to return to the repl. If you want a stack trace of the
error, you can do the following at the repl:
(.printStackTrace *e)

> 9.  How does one debug and/or profile in Clojure Box?
See Rich's "Getting Started" page:
http://clojure.org/getting_started

- Bill

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to