I am trying to set the number of spaces per indent for starting a new function in sh-mode
(bash sub-mode). I have tried setting:
'(sh-basic-offset 2)
'(sh-indentation 2)
'(smie-indent-basic 2)
(as shown in custom-set-variables
in .emacs
) and some others as well, but none of them have had any effect!
custom-set-variables
(which is the thing used internally by Customize but is not meant to be used by hand). Better use things like(setq sh-basic-offset 2)
. – Stefan Nov 4 '17 at 17:25