Adding ormolu to doom-emacs

  • Install the ormolu.el by adding this to your packages.el:
(package! ormolu)
  • Configure it in config.el:
(map!
 :map haskell-mode-map
 :localleader
 "f" #'ormolu-format-buffer)