WARNING: package in alpha stage.
Emacs major mode for PureScript
Using use-package
You need to add emacs-pe
archive to your package-archives:
(add-to-list 'package-archives
'("emacs-pe" . "https://emacs-pe.github.io/packages/"))
Install packages:
(use-package purescript-mode ; PureScript mode
:ensure t
:pin emacs-pe)
(use-package psci ; psci integration
:ensure t
:pin emacs-pe)
-
Clone the repository:
git clone https://github.com/emacs-pe/purescript-mode.git
-
Change directory to the cloned repository and create package autoloads:
make
-
Add the following to your
init.el
:(add-to-list 'load-path "/path/to/cloned/purescript-mode/") (require 'purescript-mode-autoloads)
You can use haskell-mode indentation, e.g:
(add-hook 'purescript-mode-hook #'haskell-indentation-mode)
This mode steals borrows many ideas from haskell-mode.
- @dysinger's purescript-mode repurposes haskell-mode for PureScript.