Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-30 Thread Laurent PETIT
That's really is a cool idea of feature. I intend to add such a feature as well in ccw, will certainly be a very useful command in the default mode ! (and also in the REPL ? hmmm ) 2010/9/30 blais > It's too small to be an Emacs package, but I've forked it into its own > file and a few imp

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-29 Thread blais
It's too small to be an Emacs package, but I've forked it into its own file and a few improvements have been made to it. Here: http://furius.ca/pubcode/pub/conf/common/elisp/blais/close-matching.el ( It is linked from this page: http://furius.ca/pubcode/ ) On Sep 28, 6:03 pm, ".Bill Smith"

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread .Bill Smith
Blais, Thank you for contributing the emacs code. I have been looking for the same thing, for the reasons you and Laurent PETIT described. Bill Smith Austin, Texas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread Meikel Brandmeyer
Hi, Am 28.09.2010 um 19:07 schrieb Michael Gardner: > Does anybody know of an equivalent for Vim? Not yet, but it is on the radar for VC now. :) Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread Michael Gardner
On Sep 26, 2010, at 6:51 PM, blais wrote: > Writing Clojure code tends to require a larger mix of "()", > "[]" and "{}" characters than other LISPs I use. This > sometimes makes it a bit tiring to write those balanced > expressions. For outer expressions I tend to use the verbose forms (hash-map

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread blais
The message below pretty much sums it up. My original problem with paredit and such is that it creates "modality", that is, the behaviour of insertion depends on the context. This variable behaviour, this "modality problem" is what Jef Raskin talks about in "The Humane Interface" (a truly enlighte

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread Laurent PETIT
2010/9/27 Tassilo Horn > Hi, > > did you already try out paredit [1]? That mode is absolutely fabulous > for programming any lisp and provides much more than just closing > parens. > My bet is that it's exactly paredit's behavior the OP is complaining about. We had the same discussions in coun

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-28 Thread Laurent PETIT
Hi, blais is not talking 'bout openings, but closings. When you have this (the pipe symbol for the cursor position) : (def | foo [bar baz] (hello ) ) If you type ) You will have with paredit the cursor which jumps after the last closing paren, instead of just inserting this damn closing paren

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-26 Thread Robert McIntyre
Thank you blais --- I also have troubles with paredit and this function will really help me out. keep up the good work, --Robert McIntyre On Sun, Sep 26, 2010 at 8:19 PM, Tassilo Horn wrote: > Hi, > > did you already try out paredit [1]?  That mode is absolutely fabulous > for programming any

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-26 Thread Tassilo Horn
Hi, did you already try out paredit [1]? That mode is absolutely fabulous for programming any lisp and provides much more than just closing parens. Give it a shot! Bye, Tassilo Footnotes: [1] http://mumble.net/~campbell/emacs/paredit.el -- You received this message because you are subscrib

Re: An Emacs command to close the various balanced expressions in Clojure

2010-09-26 Thread CuppoJava
I'm curious what you don't like about the automatic insertion scheme that you talked about. I'm using Parenedit with emacs and I'm quite happy with it. I think the scheme is quite simple... whenever you type '(', it inserts ')'. Similarly with '[' and '{'. -Patrick On Sep 26, 7:51 pm, blais wro

An Emacs command to close the various balanced expressions in Clojure

2010-09-26 Thread blais
Hi, Writing Clojure code tends to require a larger mix of "()", "[]" and "{}" characters than other LISPs I use. This sometimes makes it a bit tiring to write those balanced expressions. Writing balanced expressions has been addressed in editors mainly by providing the automated insertion of matc