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

@ -83,6 +83,7 @@
markdown ; writing docs for people to ignore markdown ; writing docs for people to ignore
org ; for organized fearless leader (WIP) org ; for organized fearless leader (WIP)
php ; make php less awful to work with php ; make php less awful to work with
purescript ; javascript, but functional
python ; beautiful is better than ugly python ; beautiful is better than ugly
rest ; Emacs as a REST client rest ; Emacs as a REST client
ruby ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ruby ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}

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)