aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-22 10:10:41 +0800
committerGuangxiong Lin <[email protected]>2022-03-22 10:10:41 +0800
commite897ff86b4f055be4d23fd4b3fed0eda305dff86 (patch)
tree63057e7321a0a2374fd84a492e290a5557e67b97 /.emacs.d
parent3b6f246c64f0127b1c20367b619b4157963d6140 (diff)
downloaddotfiles-e897ff86b4f055be4d23fd4b3fed0eda305dff86.tar.gz
dotfiles-e897ff86b4f055be4d23fd4b3fed0eda305dff86.tar.bz2
dotfiles-e897ff86b4f055be4d23fd4b3fed0eda305dff86.zip
Install racket-mode in emacs
Diffstat (limited to '.emacs.d')
-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)