I recently switched to emacs. Just wanted to see how it works and if it'll help with productivity.
Right now I'm working in Haskell, which means a lot of function composition with .
operator.
I have a code block that looks like this
certainat :: Certain -> Maybe Double
certainat = join . fmap at . certainCalls . certainEffects
certainld :: Certain -> Maybe Double
certainld = join . fmap maybeIDFunctionCallld . certainCalls . certainEffects
certainxin :: Certain -> Maybe Double
certainxin = join . fmap insert . certainCalls . certainEffects
and I want to align entire block on .
Reading through wiki docs, I tried doing it with C-u
M-x
align-regexp
.\(\)
but the result was weird spacing between characters. Plus that only worked on one line.
What should I do?