git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
cd ~/.emacs.d
bin/doom installOptional
You can backup your existing ~/.emacs.d, if you have one. If you want to revert back to your older emacs setup, just copy the backup back into ~/.emacs.d and restart emacs
Install haskell-language-server, which is the lsp implementation for haskell, using ghcup.
ghcup install hls 0.8.0To enable haskell, in ~/.doom.d/packages.el add these line:
(package! haskell-mode)
(package! lsp-haskell)And then in ~/.doom.d/init.el,
- under
:tools, addlsp - under
:lang, add(haskell +lsp)
Then run:
cd ~/.emacs.d
bin/doom syncTo configure to run stylish-haskell on save, add this to ~/.doom.d/config.el -
(setq haskell-stylish-on-save t)Finally, restart your emacs for the changes to be applied.
This is great. Thank you!