crystal-mode: editorconfig + quickrun integration
This commit is contained in:
parent
8491c6b937
commit
c58fefe408
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue