Setup Information
ESS Version: 20251230.1711
Emacs Version: GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2026-01-28
Problem Description
My goal is to follow the tidyverse single-indent multi-line function definition syntax.
Using every style in ess-set-style, including OWN (I think I've read all the styling customization docs by now and tried as many different options as I could), I get the following:
example_function <- function(
argument_one,
argument_two
) {
# body here
}
instead of the desired
example_function <- function(
argument_one,
argument_two
) {
# body here
}
I've looked at every indentation-based issue, and only #407 seems similar to this. ess-align-arguments-in-calls does seem related to my problem, but I don't understand how the regex is used (I've tried setting it to an empty string, assuming that function( was being ignored, and indentation in this case was the same) so this could just be on my lack of understanding.
I've also tried adjusting indentation settings in the mode hook, as is suggested here and there, but nothing I've tried so far has worked.
I'm hoping that someone can point me to a fix or workaround. Thank you!
Setup Information
ESS Version:
20251230.1711Emacs Version: GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2026-01-28
Problem Description
My goal is to follow the tidyverse single-indent multi-line function definition syntax.
Using every style in
ess-set-style, includingOWN(I think I've read all the styling customization docs by now and tried as many different options as I could), I get the following:instead of the desired
I've looked at every indentation-based issue, and only #407 seems similar to this.
ess-align-arguments-in-callsdoes seem related to my problem, but I don't understand how the regex is used (I've tried setting it to an empty string, assuming thatfunction(was being ignored, and indentation in this case was the same) so this could just be on my lack of understanding.I've also tried adjusting indentation settings in the mode hook, as is suggested here and there, but nothing I've tried so far has worked.
I'm hoping that someone can point me to a fix or workaround. Thank you!