r/purescript • u/patferraggi • Aug 13 '21
Anyone using doom emacs? Care to help with the configuration or share their config?
Hey guys,
I am trying to run purescript on doom emacs, I uncommented purescript from the init.el so purescript mode is working I get syntax highlight.
I have the purescript compiler installed inside the node_modules and also spago. spago builds fine.
I am trying to get psc-ide-emacs to work with doom emacs but failing. when I use psc-ide-server-start it says it can find the executable no matter if I go to the folder itself where purs.bin is located.
I am using Linux.
This is my config.el file
This is my packages.el file
(package! psc-ide)
Any idea? I am new to purescript and emacs so this is getting out of hand fast
4
u/ja0nz Aug 14 '21
Hey u/patferraggi
I writing purescript in doom emacs. I think its not very well communicated but the best IDE support is nowadays through https://github.com/emacs-lsp/lsp-mode. Especially if you code in multiple languages you benefit through a unified interface for code completion et al. So the answer is: no, you won't need pcs-ide-mode
To set up lsp in doom emacs you have to:
;;lsp(purescript +lsp);;companyYou should now get all the stuff you would get in psc-ide. If everything runs correctly you'll be able to open the code menu with SPC c for code navigation, completion, compiling, etc