CuppoJava <patrickli_2...@hotmail.com> 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 > (with_palette_shader > (bind_3d_texture 0 texture > (bind_1d_texture 1 palette > (bind_2d_texture 2 *fbo* > > (block))))))) > > And it would be really nice, if it could look like this instead: > > (with_draw_mode :raycast > (with_blending > (with_palette_shader > (bind_3d_texture 0 texture > (bind_1d_texture 1 palette > (bind_2d_texture 2 *fbo* > (block)))))))
First of all: it's idiomatic to use dashes instead of underscores to separate words. For the indentation, it's just a matter of teaching clojure-mode which forms should be treated as "macro with a body" calls. I do something like this: (define-clojure-indent (with-draw-mode 1)) Remember to eval this as *elisp*, not Clojure. =) Put the elisp you use to do this in your readme if you plan on having others contribute to the project. Note that Emacs is only doing string matches here rather than working off the identity of the var, so if you require a namespace that includes with-draw-mode as foo, then you'll need to add a separate entry for the foo/with-draw-mode function. -Phil --~--~---------~--~----~------------~-------~--~----~ 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 members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---