2017-06-08 11:47:56 +02:00
|
|
|
;;; lang/crystal/config.el -*- lexical-binding: t; -*-
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2018-09-07 22:08:11 -04:00
|
|
|
(after! crystal-mode
|
2018-06-15 17:27:48 +02:00
|
|
|
(set-lookup-handlers! 'crystal-mode
|
2018-02-11 03:16:03 -05:00
|
|
|
:definition #'crystal-def-jump
|
|
|
|
:references #'crystal-tool-imp)
|
2018-06-15 16:07:24 +02:00
|
|
|
(set-eval-handler! 'crystal-mode
|
2018-06-23 22:22:42 +02:00
|
|
|
'((:command . "crystal")
|
|
|
|
(:exec . "%c %s")
|
2019-10-19 15:01:37 -04:00
|
|
|
(:description . "Run Crystal script"))))
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2017-12-07 23:59:49 -05:00
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! flycheck-crystal
|
2020-01-14 03:04:26 -05:00
|
|
|
:when (featurep! :checkers syntax)
|
2018-06-21 15:54:36 +02:00
|
|
|
:after crystal-mode)
|
2018-02-06 02:04:58 -05:00
|
|
|
|
|
|
|
|
2019-10-19 14:54:31 -04:00
|
|
|
(use-package! flycheck-ameba
|
2020-01-14 03:04:26 -05:00
|
|
|
:when (featurep! :checkers syntax)
|
2019-10-19 14:54:31 -04:00
|
|
|
:after crystal-mode
|
|
|
|
:config (flycheck-ameba-setup))
|
|
|
|
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! inf-crystal
|
2018-09-07 22:08:11 -04:00
|
|
|
:commands crystal-switch-to-inf)
|