From e897ff86b4f055be4d23fd4b3fed0eda305dff86 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 22 Mar 2022 10:10:41 +0800 Subject: Install racket-mode in emacs --- .emacs.d/init.el | 2 +- .emacs.d/lisp/init-filetype.el | 3 --- .emacs.d/lisp/init-racket.el | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 .emacs.d/lisp/init-filetype.el create mode 100644 .emacs.d/lisp/init-racket.el 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) -- cgit v1.2.3