[ESS] indentation styles

Vitalie Spinu spinuvit at gmail.com
Fri Mar 30 11:57:06 CEST 2012


>>>> Jack Tanner <ihok at hotmail.com>
>>>> on Thu, 29 Mar 2012 17:26:07 +0000 wrote:

  > Vitalie Spinu <spinuvit <at> gmail.com> writes:
  >> 
  >> You can call ess-set-style to reset the style interactively, and
  >> investigate the difference. From the next version of ESS this command is
  >> also bound to [C-c .].

  > I ran ess-set-style interactively with a couple of different styles and applied
  > changes to a couple of different code blocks, but it made no difference. Perhaps
  > I'm doing this wrong, or perhaps my code is not something that would be
  > formatted differently. Could you give an example of a code block that would be
  > formatted differently, and a sequence of commands starting with ess-set-style
  > that would do this formatting?

I added this to my todo list. Will update the docs with the description
of indentation variables and examples of what each one does. 

  > Also, is there an indentation style that formats code like so:

  > foo <- list (
  >   a=3,
  >   b=5
  > )

  > instead of

  > foo <- list (
  >              a=3,
  >              b=5
  > )

This has been done and will be available in new version of ESS. 

Vitalie.



More information about the ESS-help mailing list