Add racket lisp package
This commit is contained in:
@@ -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))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user