doomemacs/modules/lang/crystal/config.el

26 lines
673 B
EmacsLisp
Raw Normal View History

;;; lang/crystal/config.el -*- lexical-binding: t; -*-
2015-08-27 23:25:35 -04:00
(def-package! crystal-mode
2015-08-27 23:25:35 -04:00
:mode "\\.cr$"
:interpreter "crystal"
:config
(set! :lookup 'crystal-mode
:definition #'crystal-def-jump
:references #'crystal-tool-imp)
(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
(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
2018-02-14 07:40:05 -05:00
:commands (inf-crystal crystal-switch-to-inf)
:config
(unless (executable-find "icr")
(warn! "Couldn't find icr. REPL will not work")))