Re: how do I improve indentation of reify methods in clojure-mode

2011-01-11 Thread Eric Schulte
As an example of a user-accessible function for customizing indentation, the following can be used with the latest clojure-mode either interactively or from a user's config. (defun clojure-new-indent (optional func level) Set the indentation level of FUNC to LEVEL. (interactive)

Re: how do I improve indentation of reify methods in clojure-mode

2011-01-11 Thread B Smith-Mannschott
On Tue, Jan 11, 2011 at 08:12, Eric Schulte schulte.e...@gmail.com wrote: As an example of a user-accessible function for customizing indentation, the following can be used with the latest clojure-mode either interactively or from a user's config.  (defun clojure-new-indent (optional func

Re: how do I improve indentation of reify methods in clojure-mode

2011-01-09 Thread Eric Schulte
Hi, Even using Phil's clojure-mode I find myself often editing the source code of clojure-mode to add custom indentation or fontification for my own macros or for forms I feel have been missed. Perhaps some of the lists of function/marco-names in clojure-mode could be tucked behind

how do I improve indentation of reify methods in clojure-mode

2011-01-08 Thread B Smith-Mannschott
I'm using (emacs) clojure-mode 1.7.1 and I'm not happy with the how it indents method definitions, e.g. in reify: | (reify ItemListener |(itemStateChanged | [this e] | (f (selected? e The fact that Protocols method name, arg list and method body are all indented to

Re: how do I improve indentation of reify methods in clojure-mode

2011-01-08 Thread Stuart Sierra
This is an unfortunate problem with clojure-mode being based on older Lisp modes for Emacs. It doesn't really know how to read Clojure code, just how to parse Lispy expressions in general. Phil Hagelberg's fork of clojure-mode [1] has experimental support for better indentation in forms like