diff options
-rw-r--r-- | custom.el | 2 | ||||
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-crystal.el | 10 |
3 files changed, 12 insertions, 1 deletions
@@ -12,7 +12,7 @@ '(ecb-options-version "2.50") '(package-selected-packages (quote - (nginx-mode all-the-icons neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php)))) + (crystal-mode nginx-mode all-the-icons neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -47,6 +47,7 @@ ;;(require 'init-editorconfig) ;; Languages (require 'init-ccc) +(require 'init-crystal) (require 'init-markdown) (require 'init-python) (require 'init-pkgbuild) diff --git a/lisp/init-crystal.el b/lisp/init-crystal.el new file mode 100644 index 0000000..3427e0e --- /dev/null +++ b/lisp/init-crystal.el @@ -0,0 +1,10 @@ +;;---------------------------------------------------------------------------- +;; Crystal Mode +;;---------------------------------------------------------------------------- +(require-package 'crystal-mode) + +(autoload 'crystal-mode "crystal-mode" "Major mode for crystal files" t) +(add-to-list 'auto-mode-alist '("\\.cr$" . crystal-mode)) +(add-to-list 'interpreter-mode-alist '("crystal" . crystal-mode)) + +(provide 'init-crystal) |