From c58fefe408b4d221aad25a1fb9f924af018e755a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 28 Mar 2016 21:57:59 -0400 Subject: [PATCH] crystal-mode: editorconfig + quickrun integration --- modules/module-crystal.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/module-crystal.el b/modules/module-crystal.el index fa72886d6..57ec71e0a 100644 --- a/modules/module-crystal.el +++ b/modules/module-crystal.el @@ -3,8 +3,17 @@ (use-package crystal-mode :mode "\\.cr$" :interpreter "crystal" + :init + (after! editorconfig + (push '(crystal-mode crystal-indent-level) + editorconfig-indentation-alist)) :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) ;;; module-crystal.el ends here