Add racket lisp package

This commit is contained in:
2026-03-05 17:40:40 +09:00
parent cb26403326
commit 6f2f3b6bcd
3 changed files with 21 additions and 182 deletions

View File

@@ -132,15 +132,30 @@ control codes are not supported."
:init
(setq inferior-lisp-program "sbcl"))
;; Racket lisp
(use-package racket-mode
:ensure t
:defer t
:commands (racket-mode racket-xp-mode)
:hook ((racket-mode . racket-xp-mode))
:bind (("C-c C-n" . racket-run-and-switch-to-repl))
:config
(setq racket-xp-eldoc-level 'summary))
(defun racket-restart ()
"Restarts the backend and reinitializes the mode to cope with the
consequences of direnv activating after racket-mode(-s)."
(interactive)
(when (eq major-mode 'racket-mode)
(racket-stop-back-end)
(racket-start-back-end)
(racket-mode)))
;; Markdown
(use-package markdown-mode
:ensure t
:defer t)
;; Lispy provides structural editing to lisp modes.
(use-package lispy
:defer t)
(if (memq 'lispy-autoloads features)
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1))))