doomemacs/modules/lang/crystal/config.el

22 lines
601 B
EmacsLisp
Raw Normal View History

;;; lang/crystal/config.el -*- lexical-binding: t; -*-
2015-08-27 23:25:35 -04:00
(after! crystal-mode
(set-lookup-handlers! 'crystal-mode
:definition #'crystal-def-jump
:references #'crystal-tool-imp)
(set-eval-handler! 'crystal-mode
'((:command . "crystal")
(:exec . "%c %s")
(:description . "Run Crystal script")))
(after! dtrt-indent
(add-to-list 'dtrt-indent-hook-mapping-list '(crystal-mode ruby crystal-indent-level))))
2015-08-27 23:25:35 -04:00
(use-package! flycheck-crystal
:when (featurep! :tools flycheck)
:after crystal-mode)
2018-02-06 02:04:58 -05:00
(use-package! inf-crystal
:commands crystal-switch-to-inf)