reddit / emacs

Haskell style indentation for different settings

[deleted] ยท 2022-02-08 09:38
My OCD would really need a package where I can indent lists and similar structures with leading commas, i.e. /a la/ Haskell style, like in `c` ```c enum What { IN , THE , BUT } ``` or in python lists ```python a = [ 1 , 2 , 3 ] ``` I thought before I set myself into the indentation rabbit hole, maybe someone knows a package or a sipmle setting to set. Up to now I have been using from time to time `haskell-indentation-mode` but sometimes it screws some other indentation in the relevant programming language and I would really only "need it" for some comma separated special cases.