The only catch is that you should do this only for “relatively unique” names, as clojure-mode is not namespace aware. Otherwise you might get funky indentation in odd places.
— Cheers, Bozhidar On December 21, 2014 at 3:23:17 AM, Reid McKenzie (rmckenzi...@gmail.com) wrote: Protip: you already can. From my .emacs: (define-clojure-indent (defroutes 'defun) (GET 2) (POST 2) (PUT 2) (DELETE 2) (HEAD 2) (ANY 2) (context 2) (for-all 1) (such-that 1) (let-routes 1) (run-db 2) (defspec 'defun)) Reid On 12/20/14 16:28, John Jacobsen wrote: > Great to see this discussion on the mailing list, rather than just > comments to PRs on GitHub. And a big thanks to Bozhidar for shepherding > the current style guide. > > I came to Clojure from Python which has a strict standard (PEP-8) and a > linting tool which enforces a standard -- it's been my experience that > this provides a net benefit to code quality (and not just in terms of > aesthetics). While I also don't agree with everything currently in the > style guide, it does some good in our shop by providing a default to > refer to which eliminates some wasted discussion time. > > So far the PR process on the style guide repo seems to have worked, more > or less -- those in the community who care about these things can weigh > in, and there at least can be a discussion before the PR is merged. > Perhaps more process or formality will become appropriate later as the > community grows. > > Regarding indentation metadata or editor customizations: I've seen > Cursive/IntelliJ accept directives for indenting specific forms > (usually, macros) and I'd like to be able to do that with clojure-mode > in Emacs. > > John > > -- > 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 > --- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to clojure+unsubscr...@googlegroups.com > <mailto:clojure+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.