Merge pull request #75 from Ptival/purescript

lang/purescript: first attempt
This commit is contained in:
Henrik Lissner 2017-05-21 10:33:11 +02:00 committed by GitHub
commit d535602a78
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)
)
)
)

View file

@ -0,0 +1,7 @@
;; -*- no-byte-compile: t; -*-
;;; lang/purescript/packages.el
;; (package! flycheck-purescript)
(package! psc-ide)
(package! purescript-mode)