doomemacs/modules/lang/crystal/config.el
Henrik Lissner c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00

21 lines
588 B
EmacsLisp

;;; lang/crystal/config.el -*- lexical-binding: t; -*-
(def-package! crystal-mode
:defer t
:config
(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"))))
(def-package! flycheck-crystal
:when (featurep! :feature syntax-checker)
:after crystal-mode
:config (add-hook 'crystal-mode-hook #'flycheck-mode))
(def-package! inf-crystal :commands crystal-switch-to-inf)