lang/purescript: small improvements

This commit is contained in:
Valentin Robert 2017-05-21 14:05:04 -07:00
parent bd84e90f80
commit 07f1add557
2 changed files with 10 additions and 12 deletions

View file

@ -2,15 +2,14 @@
(def-package! purescript-mode (def-package! purescript-mode
:mode "\\.purs$" :mode "\\.purs$"
:init
(add-hook 'purescript-mode-hook #'flycheck-mode)
(add-hook 'purescript-mode-hook #'rainbow-delimiters-mode)
:config :config
(add-hook! 'purescript-mode-hook #'flycheck-mode)
(add-hook! 'purescript-mode-hook #'company-mode)
(add-hook! 'purescript-mode-hook #'purescript-indentation-mode)
(add-hook! 'purescript-mode-hook #'rainbow-delimiters-mode)
(load "purescript-mode-autoloads" nil t) (load "purescript-mode-autoloads" nil t)
) )
;; Seems broken at the moment
;; (def-package! flycheck-purescript ;; (def-package! flycheck-purescript
;; :after purescript-mode ;; :after purescript-mode
;; :config ;; :config
@ -21,12 +20,6 @@
:after purescript-mode :after purescript-mode
:config :config
(require 'psc-ide) (require 'psc-ide)
(add-hook! 'purescript-mode-hook (add-hook! 'purescript-mode-hook #'psc-ide-mode)
(lambda ()
(company-mode)
(psc-ide-mode)
(turn-on-purescript-indentation)
)
)
) )

View file

@ -1,7 +1,12 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; lang/purescript/packages.el ;;; lang/purescript/packages.el
;; As far as I can tell, at the moment, flycheck-purescript does not work well
;; due to expecting the compiler to be psc rather than purs.
;; However, one of purescript-mode or psc-ide seems to handle flycheck, so it
;; might be unnecessary altogether.
;; (package! flycheck-purescript) ;; (package! flycheck-purescript)
(package! psc-ide) (package! psc-ide)
(package! purescript-mode) (package! purescript-mode)