Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
Hi, I've been using Clojure Leiningen for a while, but never reliably with emacs. To make things worse I really don't know emacs (vi since 1978 or something, but not emacs, and now I think emacs hates me). Questions below. On 2010-09-28, at 7:37 AM, Mike Meyer wrote: Actually, this sounds

Re: Fighting with Emacs ;-)

2010-10-05 Thread Alan
Hm. How are you connecting to swank? I use M-x slime-connect (then hit yes/RET a few times); as soon as that's done, a new buffer with the clojure REPL appears. Then I can switch to it just as with any buffer; C-x C-o or similar. The buffer it creates is called *slime-repl clojure*. That should be

Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
On 2010-10-05, at 3:13 PM, Alan wrote: Hm. How are you connecting to swank? I use M-x slime-connect (then hit yes/RET a few times); as soon as that's done, a new buffer with the clojure REPL appears. Then I can switch to it just as with any buffer; C-x C-o or similar. The buffer it creates

Re: Fighting with Emacs ;-)

2010-10-05 Thread Phil Hagelberg
On Tue, Oct 5, 2010 at 11:57 AM, Bob Hutchison hutch-li...@recursive.ca wrote: What do you mean by 'switch to the repl', in fact, how do you do that? I'm using lein swank, I can connect to it, I can evaluate expressions and get the correct results, I can see the communication going between

Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
On 2010-10-05, at 3:51 PM, Phil Hagelberg wrote: On Tue, Oct 5, 2010 at 11:57 AM, Bob Hutchison hutch-li...@recursive.ca wrote: What do you mean by 'switch to the repl', in fact, how do you do that? I'm using lein swank, I can connect to it, I can evaluate expressions and get the

Re: Fighting with Emacs ;-)

2010-10-05 Thread Sean Corfield
On Tue, Oct 5, 2010 at 12:51 PM, Phil Hagelberg p...@hagelb.org wrote: Do M-x package-list-packages and mark slime-repl with i, then press x. I installed clojure-mode this way and now when I try to install either clojure-test or swank-clojure, Emacs complains that clojure-mode-1.7.1 already

Re: Fighting with Emacs ;-)

2010-10-05 Thread Andy Fingerhut
I use MacPorts: http://www.macports.org/ and then this command to install emacs from source code: sudo port install em...@+gtk+x11 It does require running X11 (in Applications/Utilities) in order to get color highlighting, etc., but others have mentioned before on this list that SLIME and

Re: Fighting with Emacs ;-)

2010-10-05 Thread psfblair
I would have sworn that when I was doing C-c C-r originally I was seeing the region be copied in at the REPL prompt and evaluated. That isn't what's happening now--can anyone else confirm that I shouldn't be expecting to see this? Thx. On Sep 28, 1:37 pm, Mike Meyer mwm-keyword-googlegroups.

Re: Fighting with Emacs ;-)

2010-10-05 Thread Phil Hagelberg
That might be an inf-lisp thing; I haven't seen it work like that in slime. -Phil On Oct 5, 2010 5:06 PM, psfblair psfbl...@gmail.com wrote: I would have sworn that when I was doing C-c C-r originally I was seeing the region be copied in at the REPL prompt and evaluated. That isn't what's

Re: Fighting with Emacs ;-)

2010-10-05 Thread Phil Hagelberg
On Tue, Oct 5, 2010 at 1:22 PM, Sean Corfield seancorfi...@gmail.com wrote: On Tue, Oct 5, 2010 at 12:51 PM, Phil Hagelberg p...@hagelb.org wrote: Do M-x package-list-packages and mark slime-repl with i, then press x. I installed clojure-mode this way and now when I try to install either

Re: Fighting with Emacs ;-)

2010-10-05 Thread Sean Corfield
On Tue, Oct 5, 2010 at 8:26 PM, Phil Hagelberg p...@hagelb.org wrote: That sounds like the bug that I fixed; if you upgrade to http://github.com/technomancy/package.el it should take care of it. Yeah, I looked at that but had no idea at all how to upgrade to it (remember: not familiar with the

Re: Fighting with Emacs ;-)

2010-10-05 Thread Sean Corfield
On Tue, Oct 5, 2010 at 8:42 PM, Sean Corfield seancorfi...@gmail.com wrote: I've heard Mac people say good things about http://emacsformacosx.com OK, so I installed that and it doesn't have ELPA so I did the copy'n'paste install per the site. How do I install / use your updated package.el

Re: Fighting with Emacs ;-)

2010-09-28 Thread psfblair
I could do this, but right now I'm just playing with C-c C-r to evaluate regions, instead of compiling the entire file. And I'd swear this used to put the evaluation in the REPL. On Sep 27, 10:59 pm, Alan a...@malloys.org wrote: C-c C-k in the .clj buffer is easier and equivalent (or at least

Re: Fighting with Emacs ;-)

2010-09-28 Thread psfblair
I'm just doing simple Clojure exercises with simple evaluations of regions in the .clj buffer. I don't have an ns form, but I was under the impression that this put me in the user namespace, which is what my REPL is in. If I evaluate *ns* in the .clj buffer I get #Namespace user in the minibuffer,

Re: Fighting with Emacs ;-)

2010-09-28 Thread Mike Meyer
On Tue, 28 Sep 2010 03:58:56 -0700 (PDT) psfblair psfbl...@gmail.com wrote: I could do this, but right now I'm just playing with C-c C-r to evaluate regions, instead of compiling the entire file. And I'd swear this used to put the evaluation in the REPL. On Sep 27, 10:59 pm, Alan

Re: Fighting with Emacs ;-)

2010-09-27 Thread psfblair
I found the old thread below, but unfortunately the solution isn't working for me. If I have a foo.clj file in a buffer and evaluate region on (defn foo [] (+ 1 2)) I get #'user/foo in the minibuffer. If I then evaluate region on (foo) I get 3 in the minibuffer. The slime REPL is giving me a

Re: Fighting with Emacs ;-)

2010-09-27 Thread Linus Ericsson
I recognize that one. The repl haven't loaded the file your editing. My (temporary) solution is to do a (load-file the file your editing) after each edit that I want to debug, but that's a bit boring. I guess there is some kind of reload feature somewhere... /Linus 2010/9/27 psfblair

Re: Fighting with Emacs ;-)

2010-09-27 Thread Alan
C-c C-k in the .clj buffer is easier and equivalent (or at least very similar) On Sep 27, 12:27 pm, Linus Ericsson oscarlinuserics...@gmail.com wrote: I recognize that one. The repl haven't loaded the file your editing. My (temporary) solution is to do a (load-file the file your editing)

Fighting with Emacs ;-)

2010-03-27 Thread alux
Hi all, I still struggle with Emacs and Slime and these. So I have a Slime REPL up and running in Emacs. Nice. I edit Clojure files in Emacs, and it says (Clojure Paredit Slime[clojure{0/1}]) in this status line (or how it is called), and it helps a lot. Nice. And when I do C-x C-e with cursor

Re: Fighting with Emacs ;-)

2010-03-27 Thread Michał Marczyk
On 27 March 2010 22:25, alux alu...@googlemail.com wrote: But now I see people use the result of this evaluation in their REPL (I see this in videos, so I cant ask 'em :). This doesnt work at all for me. I get the result in the minibuffer (this thing at the very bottom) and thats it. If the