hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
361 stars 68 forks source link

do not use scala-indent:indent-on-parentheses by default #99

Closed fommil closed 8 years ago

fommil commented 8 years ago

the behaviour of scala-indent:indent-on-parentheses is best achieved using a parenthesis specific plugin, such as smartparens. It would be good just to remove this feature altogether.

e.g. I find this to be particularly good

  (sp-local-pair 'scala-mode "(" nil :post-handlers '(("||\n[i]" "RET")))
  (sp-local-pair 'scala-mode "{" nil :post-handlers '(("||\n[i]" "RET") ("| " "SPC")))