aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el2
-rw-r--r--.emacs.d/lisp/init-filetype.el3
-rw-r--r--.emacs.d/lisp/init-racket.el4
3 files changed, 5 insertions, 4 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index bd82916..b52f599 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -29,7 +29,7 @@
(require 'init-lang)
(require 'init-go)
(require 'init-eglot)
-(require 'init-filetype)
+(require 'init-racket)
(require 'init-deft)
(require 'init-input-method)
(require 'init-projectile)
diff --git a/.emacs.d/lisp/init-filetype.el b/.emacs.d/lisp/init-filetype.el
deleted file mode 100644
index e27c119..0000000
--- a/.emacs.d/lisp/init-filetype.el
+++ /dev/null
@@ -1,3 +0,0 @@
-(add-to-list 'auto-mode-alist '("\\.rkt\\'" . scheme-mode))
-
-(provide 'init-filetype)
diff --git a/.emacs.d/lisp/init-racket.el b/.emacs.d/lisp/init-racket.el
new file mode 100644
index 0000000..465a948
--- /dev/null
+++ b/.emacs.d/lisp/init-racket.el
@@ -0,0 +1,4 @@
+(when (gx/maybe-require-package 'racket-mode)
+ (add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode)))
+
+(provide 'init-racket)