Re: Radically simplified Emacs and SLIME setup

2011-06-23 Thread gaz jones
this is really great, thanks for putting this together. i have a (possibly daft) question -- is there a neat way to kill/restart the underlying process. i have looked for a *ahem* clojure-jack-off function or equivalent but couldnt find one in the source. i am just killing it from the terminal at

Re: Radically simplified Emacs and SLIME setup

2011-06-23 Thread Sam Ritchie
This should do the trick, though I'm not set up with jack-in to test: At the REPL, type comma (the character ,), then sayoonara. On Thu, Jun 23, 2011 at 11:20 AM, gaz jones gareth.e.jo...@gmail.comwrote: this is really great, thanks for putting this together. i have a (possibly daft)

Re: Radically simplified Emacs and SLIME setup

2011-06-23 Thread gaz jones
awesome, it works. many thanks :D i clearly need to read the slime manual On Thu, Jun 23, 2011 at 10:24 AM, Sam Ritchie sritchi...@gmail.com wrote: This should do the trick, though I'm not set up with jack-in to test: At the REPL, type comma (the character ,), then sayoonara. On Thu, Jun 23,

Re: Radically simplified Emacs and SLIME setup

2011-06-23 Thread Phil Hagelberg
Sam Ritchie sritchi...@gmail.com writes: This should do the trick, though I'm not set up with jack-in to test: At the REPL, type comma (the character ,), then sayoonara. You can also just kill the *swank* buffer. -Phil -- You received this message because you are subscribed to the Google

Re: Radically simplified Emacs and SLIME setup

2011-06-17 Thread Jeff Dik
Phil, This works for me! Thanks! Jeff On Sun, Jun 12, 2011 at 7:51 PM, Phil Hagelberg p...@hagelb.org wrote: On Jun 12, 10:58 am, Mark Engelberg mark.engelb...@gmail.com wrote: I take that back (I had edited the wrong file, which wasn't the one my emacs was using). I get the error Not

Re: Radically simplified Emacs and SLIME setup

2011-06-17 Thread Jeff Dik
Mark, I got this same error when I copied and pasted the clojure-jack-in function from gmail. I had to remove newlines from (search-backward slime-load-hook) and (slime-connect localhost clojure-swank-port) Hope that helps, Jeff On Sun, Jun 12, 2011 at 8:50 PM, Mark Engelberg

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Mark Engelberg
On Fri, Jun 10, 2011 at 8:46 PM, Phil Hagelberg p...@hagelb.org wrote: I can't really do that as it's flagrantly nonportable. However, it may be that we can just rely on Leiningen to find the project root instead. Does this work? Seems to work for me. -- You received this message because you

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Mark Engelberg
I take that back (I had edited the wrong file, which wasn't the one my emacs was using). I get the error Not enough arguments for format string. On Sun, Jun 12, 2011 at 10:56 AM, Mark Engelberg mark.engelb...@gmail.com wrote: On Fri, Jun 10, 2011 at 8:46 PM, Phil Hagelberg p...@hagelb.org

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Phil Hagelberg
On Jun 12, 10:58 am, Mark Engelberg mark.engelb...@gmail.com wrote: I take that back (I had edited the wrong file, which wasn't the one my emacs was using). I get the error Not enough arguments for format string. Oops; I forgot to mention it also needs this: (defvar clojure-swank-command

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Sean Corfield
On Sun, Jun 12, 2011 at 4:51 PM, Phil Hagelberg p...@hagelb.org wrote: (defvar clojure-swank-command lein jack-in %s ) Just curious: why defvar over plain def there? (I'm thinking in the context of defvar being in the old deprecated contrib libraries and not being in the new maintained contrib

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Mark Engelberg
error in process filter: Search failed: slime-load-hook On Sun, Jun 12, 2011 at 4:51 PM, Phil Hagelberg p...@hagelb.org wrote: On Jun 12, 10:58 am, Mark Engelberg mark.engelb...@gmail.com wrote: I take that back (I had edited the wrong file, which wasn't the one my emacs was using). I get

Re: Radically simplified Emacs and SLIME setup

2011-06-12 Thread Phil Hagelberg
On Jun 12, 5:44 pm, Sean Corfield seancorfi...@gmail.com wrote: On Sun, Jun 12, 2011 at 4:51 PM, Phil Hagelberg p...@hagelb.org wrote: (defvar clojure-swank-command lein jack-in %s ) Just curious: why defvar over plain def there? (I'm thinking in the context of defvar being in the old

Re: Radically simplified Emacs and SLIME setup

2011-06-10 Thread Phil Hagelberg
On Jun 9, 6:14 pm, Mark Engelberg mark.engelb...@gmail.com wrote: On Thu, Jun 9, 2011 at 8:20 AM, Jeff Dik s45...@gmail.com wrote: I had to change a s-exp on line 848 in clojure-mode.el from    (expand-file-name clojure-root) to    (replace-regexp-in-string / (expand-file-name

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Andreas Liljeqvist
One week ago on windows. install latest stable Emacs. install Emacs starter kit. M-x package-install clojure-mode lein plugin install swank-clojure 1.3.1 Be sure to remove any old swank-clojure from your plugin dir. invoke M-x clojure-jack-in from a project Works for me atleast. Phil - Thanks

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Mark Engelberg
Andreas, can you clarify exactly where you got emacs from? I got it from here: http://ftp.gnu.org/gnu/emacs/windows/ Is there another/better source? On Thu, Jun 9, 2011 at 1:18 AM, Andreas Liljeqvist bon...@gmail.com wrote: One week ago on windows. install latest stable Emacs. install Emacs

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Andreas Liljeqvist
http://ftp.gnu.org/gnu/emacs/windows/emacs-23.3-bin-i386.zip Just tested a clean installation at work. No problems. Remove your .emacs.d/ just to be sure. Is there anything more to your error message than cannot find the path specified? I am using windows 7 btw. 2011/6/9 Mark Engelberg

RE: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Bhinderwala, Shoeb
] On Behalf Of Mark Engelberg Sent: Thursday, June 09, 2011 4:22 AM To: clojure@googlegroups.com Subject: Re: Radically simplified Emacs and SLIME setup Andreas, can you clarify exactly where you got emacs from? I got it from here: http://ftp.gnu.org/gnu/emacs/windows/ Is there another/better source

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Jeff Dik
On Wed, Jun 8, 2011 at 8:36 PM, Mark Engelberg mark.engelb...@gmail.com wrote: It's been a couple of weeks, so I thought I'd check in and see whether anyone has yet been successful at using the new clojure-jack-in process on Windows.  Did the 1.9.2 release successfully resolve the cannot find

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Mark Engelberg
OK, I just tried a totally clean install of emacs 24 (I had been using emacs 23.1), first deleting my existing .emacs.d directory and tried to do the absolute minimum that the instructions specified. I added the marmalade package repository to my .emacs file. I installed clojure-mode and

Re: Radically simplified Emacs and SLIME setup

2011-06-09 Thread Mark Engelberg
On Thu, Jun 9, 2011 at 8:20 AM, Jeff Dik s45...@gmail.com wrote: With clojure-mode 1.9.2 and (GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON) (according to emacs-version), I had to change a s-exp on line 848 in clojure-mode.el from    (expand-file-name clojure-root)

Re: Radically simplified Emacs and SLIME setup

2011-06-08 Thread Mark Engelberg
It's been a couple of weeks, so I thought I'd check in and see whether anyone has yet been successful at using the new clojure-jack-in process on Windows. Did the 1.9.2 release successfully resolve the cannot find the path specified error for anyone else? Thanks, Mark On Mon, May 30, 2011 at

Re: Radically simplified Emacs and SLIME setup

2011-05-31 Thread Matjaz Gregoric
Indeed, I switched from Vim to Emacs with Viper and Vimpulse and so far it has been a very pleasant experience, giving me best of both worlds. On Tue, May 31, 2011 at 4:18 AM, Joop Kiefte iko...@gmail.com wrote: And Emacs has Viper-mode (and other Vi-keybinding-stuff) :) 2011/5/30 J.R.

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread László Török
Then you might wanna double check whether you have the latest version (of emacs-starter-kit), as it worked for me with a week old snapshot. (Im on Mac, running Aquamacs). 2011/5/30 Mark Engelberg mark.engelb...@gmail.com On Sun, May 29, 2011 at 10:06 PM, László Török ltoro...@gmail.com wrote:

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread Mark Engelberg
Has anyone tried this on Windows? I reinstalled emacs-starter-kit, then reinstalled clojure-mode. I downloaded the latest version of lein, and created a completely fresh new project. Then, I did lein plugin install swank-clojure 1.3.1. I opened up the core.clj from the newly created project in

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread Phil Hagelberg
On May 30, 11:26 am, Mark Engelberg mark.engelb...@gmail.com wrote: Has anyone tried this on Windows? I actually just got a bug report a few days ago with a fix for Windows compatibility. I just pushed out a 1.9.2 release that includes that fix. So if you M-x package-install clojure-mode again

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread Mark Engelberg
The package installer saw the 1.9.2 release, which I installed. I'm still getting the cannot find the path specified error though. Thanks for all the help you all have provided so far; let me know if you have any other ideas for me to try. Thanks, Mark -- You received this message because

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread J.R. Garcia
Having worked with Lisp in the path, I didn't get that interactive feel with VimClojure. I didn't really enjoy using Nailgun either. That being said, VimClojure is certainly a great plugin. I also have been wanting to get used to the keybindings for emacs because of my daily work. I have to use

Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread Joop Kiefte
And Emacs has Viper-mode (and other Vi-keybinding-stuff) :) 2011/5/30 J.R. Garcia mrjohngar...@gmail.com: Having worked with Lisp in the path, I didn't get that interactive feel with VimClojure. I didn't really enjoy using Nailgun either. That being said, VimClojure is certainly a great

Re: Radically simplified Emacs and SLIME setup

2011-05-29 Thread Mark Engelberg
I need more details about how to install the current version of clojure-mode. When I do alt-x package-install and type clojure-mode I get a bunch of messages that it is compiling clojure-mode 1.7.1. The website said to install clojure-mode via marmalade, but it's not at all clear to me what

Re: Radically simplified Emacs and SLIME setup

2011-05-29 Thread László Török
Heh, yeah that marmelade was a funny one, I spent a few hours figuring what goes where. I suggest you download emacs-starter-kit from Phil's github repo, that has the necessary configuration for marmelade too. Then proceed with installing clojure-mode. Las sent from my mobile device On

Re: Radically simplified Emacs and SLIME setup

2011-05-29 Thread Mark Engelberg
On Sun, May 29, 2011 at 10:06 PM, László Török ltoro...@gmail.com wrote: Heh, yeah that marmelade was a funny one, I spent a few hours figuring what goes where. I suggest you download emacs-starter-kit from Phil's github repo, that has the necessary configuration for marmelade too. Then

Re: Radically simplified Emacs and SLIME setup

2011-05-27 Thread Wolodja Wentland
On Thu, May 26, 2011 at 20:37 -0700, J.R. Garcia wrote: I compiled a new version of emacs from source and started it up. clojure-jack-in just worked flawlessly. This is stupid simple! Thanks for your hard work! It's much appreciated for emacs newcomers like me (I'm a vim user)! I am curious:

Re: Radically simplified Emacs and SLIME setup

2011-05-27 Thread Ambrose Bonnaire-Sergeant
On Fri, May 27, 2011 at 6:31 PM, Wolodja Wentland babi...@gmail.com wrote: On Thu, May 26, 2011 at 20:37 -0700, J.R. Garcia wrote: I compiled a new version of emacs from source and started it up. clojure-jack-in just worked flawlessly. This is stupid simple! Thanks for your hard work! It's

Re: Radically simplified Emacs and SLIME setup

2011-05-26 Thread J.R. Garcia
I compiled a new version of emacs from source and started it up. clojure-jack-in just worked flawlessly. This is stupid simple! Thanks for your hard work! It's much appreciated for emacs newcomers like me (I'm a vim user)! Thanks again, J.R. Garcia On May 24, 6:55 pm, Phil Hagelberg

Re: Radically simplified Emacs and SLIME setup

2011-05-24 Thread Phil Hagelberg
On May 22, 2:34 am, Tassilo Horn tass...@member.fsf.org wrote: But with a new project created with lein new myproject it works fine. Even after changing that new project's deps to clojure 1.3.0-SNAPSHOT. Hm, I wonder what's making the existing project not jack-innable... I think this may be

Re: Radically simplified Emacs and SLIME setup

2011-05-24 Thread Tassilo Horn
Phil Hagelberg p...@hagelb.org writes: Hi Phil, But with a new project created with lein new myproject it works fine. Even after changing that new project's deps to clojure 1.3.0-SNAPSHOT. Hm, I wonder what's making the existing project not jack-innable... I think this may be due to a

Re: Radically simplified Emacs and SLIME setup

2011-05-24 Thread J.R. Garcia
Following along in a version of Emacs.app compiled from source works just fine. It may just be a problem with version 22.1.1 (which is admittedly pretty old). prefer to run inside of iTerm2, but I can update emacs. On May 24, 3:28 pm, J.R. Garcia mrjohngar...@gmail.com wrote: *Note: I'm an

Re: Radically simplified Emacs and SLIME setup

2011-05-24 Thread Phil Hagelberg
On May 24, 1:28 pm, J.R. Garcia mrjohngar...@gmail.com wrote: I'm having an issue when running clojure-jack-in. I followed the steps in the video and once I get to the point of using clojure-jack-in I get: Symbol's function definition is void: locate-dominating-file. I am running GNU Emacs

Re: Radically simplified Emacs and SLIME setup

2011-05-22 Thread Tassilo Horn
Phil Hagelberg p...@hagelb.org writes: Hi Phil, Do I get you right that the output is the problem that prevents me to get to the SLIME REPL, since you didn't say anything at all about that IllegalArgumentException? I'm not sure what's going on with the IllegalArgumentException. Do you have

Re: Radically simplified Emacs and SLIME setup

2011-05-21 Thread Tom Hicks
Where does one get clojure-mode 1.9.1? The latest I see on github is 1.7.1. On May 20, 4:06 pm, Phil Hagelberg p...@hagelb.org wrote: On May 19, 11:15 pm, Tassilo Horn tass...@member.fsf.org wrote: Do I get you right that the output is the problem that prevents me to get to the SLIME REPL,

Re: Radically simplified Emacs and SLIME setup

2011-05-21 Thread Benny Tsai
You can grab it here: https://github.com/technomancy/clojure-mode On Saturday, May 21, 2011 6:41:18 PM UTC-6, Tom Hicks wrote: Where does one get clojure-mode 1.9.1? The latest I see on github is 1.7.1. On May 20, 4:06 pm, Phil Hagelberg p@hagelb.org wrote: On May 19, 11:15 pm,

Re: Radically simplified Emacs and SLIME setup

2011-05-21 Thread Tom Hicks
Thanks Benny! That was the problem and the new simplified setup just worked for me. -t On May 21, 5:51 pm, Benny Tsai benny.t...@gmail.com wrote: You can grab it here: https://github.com/technomancy/clojure-mode On Saturday, May 21, 2011 6:41:18 PM UTC-6, Tom Hicks wrote: Where does one

Re: Radically simplified Emacs and SLIME setup

2011-05-20 Thread Tassilo Horn
Phil Hagelberg p...@hagelb.org writes: Hi Phil,   $ lein upgrade        # == 0.6.3   $ lein plugin install swank-clojure 1.4.0-SNAPSHOT There is no Leiningen version 0.6.3--I'm assuming you're running 1.5.2? Ups, you are correct. ;-) Reflection warning, swank/util/io.clj:15 - call to

Re: Radically simplified Emacs and SLIME setup

2011-05-20 Thread Phil Hagelberg
On May 19, 11:15 pm, Tassilo Horn tass...@member.fsf.org wrote: Do I get you right that the output is the problem that prevents me to get to the SLIME REPL, since you didn't say anything at all about that IllegalArgumentException? I'm not sure what's going on with the IllegalArgumentException.

Re: [ANN] Radically simplified Emacs and SLIME setup

2011-05-19 Thread Tassilo Horn
Phil Hagelberg p...@hagelb.org writes: Hi Phil, I pushed out some changes last night that make it much, much easier to get set up with Emacs and SLIME. If you've tried it and ended up bewildered by issues with ELPA or how to launch a swank server, give it another go! It only takes three

Re: Radically simplified Emacs and SLIME setup

2011-05-19 Thread Paul Mooser
I had a similar issue with an existing project - it went away when I created a new project and did lein deps. On May 18, 11:39 pm, Tassilo Horn tass...@member.fsf.org wrote: Exception in thread main java.lang.IllegalArgumentException: No value supplied for key: 55298 I have to say that this

Re: Radically simplified Emacs and SLIME setup

2011-05-19 Thread Phil Hagelberg
On May 18, 11:39 pm, Tassilo Horn tass...@member.fsf.org wrote: I tried it by first deinstalling any clojure/swank/SLIME packages I had.  Then I installed clojure-mode 1.9.0 from the marmalade-repo. In a terminal, I did   $ lein upgrade        # == 0.6.3   $ lein plugin install

[ANN] Radically simplified Emacs and SLIME setup

2011-05-17 Thread Phil Hagelberg
I pushed out some changes last night that make it much, much easier to get set up with Emacs and SLIME. If you've tried it and ended up bewildered by issues with ELPA or how to launch a swank server, give it another go! It only takes three steps to get started: 1. Install clojure-mode via git