Closed djh1202 closed 3 years ago
As far as I know, support for indentation was removed quite some time ago
Support was withdrawn because indentation was driven by the R indentation framework, and it was felt inappropriate to support this (it is clearly imperfect).
You can re-activate R-style indentation by putting the following after (require 'ess) in your startup:
(require 'ess-r-mode)
(add-to-list 'STA-customize-alist '(indent-line-function . #'ess-r-indent-line))
Thanks! I had to change (require 'ess-r-mode) to (require 'ess-stata-mode) in my init file, but after that it worked.
in a conditional or for loop inside braces { } , do not automatically indent as they used to