crystal-mode: editorconfig + quickrun integration

This commit is contained in:
Henrik Lissner 2016-03-28 21:57:59 -04:00
parent 8491c6b937
commit c58fefe408

View file

@ -3,8 +3,17 @@
(use-package crystal-mode (use-package crystal-mode
:mode "\\.cr$" :mode "\\.cr$"
:interpreter "crystal" :interpreter "crystal"
:init
(after! editorconfig
(push '(crystal-mode crystal-indent-level)
editorconfig-indentation-alist))
:config :config
(setq crystal-indent-level 2)) (after! quickrun
(quickrun-add-command
"crystal" '((:command . "crystal")
(:exec . "%c run %s")
(:description . "Run Crystal script"))
:mode 'crystal-mode)))
(provide 'module-crystal) (provide 'module-crystal)
;;; module-crystal.el ends here ;;; module-crystal.el ends here