Re: Question for Clojure-Mode users.

2009-06-06 Thread Daniel Lyons
On Jun 5, 2009, at 3:27 PM, Phil Hagelberg wrote: > > "Stephen C. Gilardi" writes: > >> (my-cool-database-operation the-database >> (arg-exp-1 with operands) >> literal-arg >> angstroms) >> >> There doesn't seem to be an easy way to distinguish these two types >> of >> initial operands (or

Re: Question for Clojure-Mode users.

2009-06-05 Thread Phil Hagelberg
"Stephen C. Gilardi" writes: > I've attached a patch to allow namespace qualification. I wonder if we > should treat the "def" prefix in every namespace like we treat "with-" > after this patch. (Right now it's only allowing an optional namespace > of "clojure".) I'll be happy to provide a patch

Re: Question for Clojure-Mode users.

2009-06-05 Thread Stephen C. Gilardi
On Jun 5, 2009, at 5:18 PM, Phil Hagelberg wrote: My implementation only works when the with- form is referred in the current namespace, but you could fix that with a little more regex tweakage. Thanks, it's working great. I've attached a patch to allow namespace qualification. I wonder if w

Re: Question for Clojure-Mode users.

2009-06-05 Thread CuppoJava
Thank you very much Phil. That fix worked perfectly. -Patrick --~--~-~--~~~---~--~~ 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 Note that posts from new me

Re: Question for Clojure-Mode users.

2009-06-05 Thread Chris Dean
Does anyone know what the functional difference is between clojure-indent-function and common-lisp-indent-function ? Or even the cl-indent:function from slime ? I assume there is a difference, I just don't know what it is. Cheers, Chris Dean --~--~-~--~~~---~--~---

Re: Question for Clojure-Mode users.

2009-06-05 Thread Phil Hagelberg
"Stephen C. Gilardi" writes: > (my-cool-database-operation the-database > (arg-exp-1 with operands) > literal-arg > angstroms) > > There doesn't seem to be an easy way to distinguish these two types of > initial operands (or the N-2 other types I've missed). "with-*" would > probably seldo

Re: Question for Clojure-Mode users.

2009-06-05 Thread Phil Hagelberg
"Stephen C. Gilardi" writes: > While I often like lining up all the arguments generally, it is the > one thing that I "fix" manually from time to time when the loss of > horizontal real estate becomes too great to tolerate. > > One possible improvement would be to change clojure-mode so that > "

Re: Question for Clojure-Mode users.

2009-06-05 Thread Stephen C. Gilardi
On Jun 5, 2009, at 4:35 PM, Stephen C. Gilardi wrote: What are the downsides to always indenting list contents that start on a new line as indented 2 (possibly optionally 1) from their opening paren? Playing with this some, I see that when all the arguments to the function are equal in s

Re: Question for Clojure-Mode users.

2009-06-05 Thread CuppoJava
Honestly, I really don't like indenting to align with the first argument. The only case where that seems sensible is for functions where the arguments have equal importance/characteristics. eg. (bit-and GL_DEPTH_BUFFER_BIT GL_COLOR_BUFFER_BIT) But this situation rarely comes about in m

Re: Question for Clojure-Mode users.

2009-06-05 Thread Stephen C. Gilardi
On Jun 5, 2009, at 3:52 PM, Phil Hagelberg wrote: You may be able to customize the indentation to behave differently, but that's going to be even worse than using define-clojure-indent with regard to consistency when other people contribute to your project. Any time you stray from the stan

Re: Question for Clojure-Mode users.

2009-06-05 Thread Phil Hagelberg
CuppoJava writes: > Is there anyway to turn off the feature completely? I don't mind at > all if my arguments are not aligned with the first one, and I don't > want to maintain a elisp file along with my clojure source. Turn off what feature? You can rebind TAB to another function if you want t

Re: Question for Clojure-Mode users.

2009-06-05 Thread CuppoJava
Thanks Phil for your help. Heh, I'm still not used to seeing my words separated with dashes. I'll switch over eventually. =) Is there anyway to turn off the feature completely? I don't mind at all if my arguments are not aligned with the first one, and I don't want to maintain a elisp file along

Re: Question for Clojure-Mode users.

2009-06-05 Thread Phil Hagelberg
CuppoJava writes: > Hi fellow emacs users! > I'm using Jeffrey Chu's Clojure-mode right now, and I'm wondering how > I can turn off the "align with first argument" feature. > > A lot of my code currently looks like this: > (with_draw_mode :raycast > (with_blending >

Question for Clojure-Mode users.

2009-06-05 Thread CuppoJava
Hi fellow emacs users! I'm using Jeffrey Chu's Clojure-mode right now, and I'm wondering how I can turn off the "align with first argument" feature. A lot of my code currently looks like this: (with_draw_mode :raycast (with_blending (with_palette_shader