2017-06-08 11:47:56 +02:00
|
|
|
;;; lang/crystal/config.el -*- lexical-binding: t; -*-
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(def-package! crystal-mode
|
2015-08-27 23:25:35 -04:00
|
|
|
:mode "\\.cr$"
|
|
|
|
:interpreter "crystal"
|
|
|
|
:config
|
2017-02-23 00:06:12 -05:00
|
|
|
(set! :eval 'crystal-mode
|
2017-02-19 18:57:16 -05:00
|
|
|
'((:command . "crystal")
|
|
|
|
(:exec . "%c %s")
|
|
|
|
(:description . "Run Crystal script"))))
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2017-12-07 23:59:49 -05:00
|
|
|
|
|
|
|
(def-package! flycheck-crystal
|
|
|
|
:after crystal-mode
|
|
|
|
:config (add-hook 'crystal-mode-hook #'flycheck-mode))
|
2018-02-06 02:04:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
(def-package! inf-crystal
|
|
|
|
:commands (inf-crystal crystal-switch-to-inf))
|