Search code examples
haskellemacshaskell-mode

Customize indentation width in haskell-indentation mode


I am currently using Emacs as my primary IDE for developing Haskell code and I am really satisfied so far. But at the moment I can't figure out one little detail, namely how to customize the indentation width to be 4 instead of 2.

Currently I have turned on the haskell-indentation in haskell-mode, but I can't figure out what variable I have to set to customize the indentation width. So far I have tried to set '(haskell-indent-spaces 4) but this doesn't seem to have any effect at all...

Thx in advance for any help!


Solution

  • Based on the source of haskell-indentation, it looks like 2 is hardcoded in the file so you'll have to edit it manually.