lang/purescript: first attempt

This commit is contained in:
Valentin Robert 2017-05-20 21:09:23 -07:00
parent 3a0a2c5481
commit bd84e90f80
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,32 @@
;;; lang/purescript/config.el
(def-package! purescript-mode
:mode "\\.purs$"
:init
(add-hook 'purescript-mode-hook #'flycheck-mode)
(add-hook 'purescript-mode-hook #'rainbow-delimiters-mode)
:config
(load "purescript-mode-autoloads" nil t)
)
;; Seems broken at the moment
;; (def-package! flycheck-purescript
;; :after purescript-mode
;; :config
;; (add-hook! 'flycheck-mode-hook #'flycheck-purescript-setup)
;; )
(def-package! psc-ide
:after purescript-mode
:config
(require 'psc-ide)
(add-hook! 'purescript-mode-hook
(lambda ()
(company-mode)
(psc-ide-mode)
(turn-on-purescript-indentation)
)
)
)