doomemacs/modules/lang/crystal/config.el
Henrik Lissner c58077810d
General refactor of modules
General code and comment improvements.

Also, removed the :desc's for csv-mode because map! is currently unable
to set which-key descriptions mode-locally, and should be avoided for
anything but global keybinds. This will be fixed when General is
introduced into Doom.
2018-09-09 09:58:20 -04:00

19 lines
495 B
EmacsLisp

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