Sublime Forum

How to do smart indentation like emacs

#1

my favorite language is Haskell

and it is so terrible indentation

when code “Where” like this
isInclude :: DayLecture -> DayLecture -> Bool
isInclude l x = out1 < in1 && in2 < out2
where (in1, in2) = mapTuple time2min x
(out1, out2) = mapTuple time2min l
because where has 5 space, (in1 and (out1 are not aligned vertically

is there bundle function like smart indentation for each syntax mode on sublime text??

if not, it should be a first priority job for you.

0 Likes