mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
25
.emacs.d/modules/lang/crystal/config.el
Normal file
25
.emacs.d/modules/lang/crystal/config.el
Normal file
@@ -0,0 +1,25 @@
|
||||
;;; 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"))))
|
||||
|
||||
|
||||
(use-package! flycheck-crystal
|
||||
:when (featurep! :tools flycheck)
|
||||
:after crystal-mode)
|
||||
|
||||
|
||||
(use-package! flycheck-ameba
|
||||
:when (featurep! :tools flycheck)
|
||||
:after crystal-mode
|
||||
:config (flycheck-ameba-setup))
|
||||
|
||||
|
||||
(use-package! inf-crystal
|
||||
:commands crystal-switch-to-inf)
|
||||
5
.emacs.d/modules/lang/crystal/doctor.el
Normal file
5
.emacs.d/modules/lang/crystal/doctor.el
Normal file
@@ -0,0 +1,5 @@
|
||||
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
||||
;;; lang/crystal/doctor.el
|
||||
|
||||
(unless (executable-find "icr")
|
||||
(warn! "Couldn't find icr. REPL will not work"))
|
||||
8
.emacs.d/modules/lang/crystal/packages.el
Normal file
8
.emacs.d/modules/lang/crystal/packages.el
Normal file
@@ -0,0 +1,8 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; lang/crystal/packages.el
|
||||
|
||||
(package! crystal-mode)
|
||||
(package! inf-crystal)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-crystal)
|
||||
(package! flycheck-ameba))
|
||||
Reference in New Issue
Block a user