Skip to content

joaotavora/sly-named-readtables

Repository files navigation

MELPA

NAMED-READTABLES support for SLY

sly-named-readtables is an external contrib for SLY that enables different readtables to be active in different parts of the same file:

screenshot

Based on the original idea and implementation by user "budden" discussed in slime/slime#259.

Install from MELPA

Perform the usual MELPA setup and then do M-x package-install RET sly-named-readtables RET.

M-x sly should now bring up a readtable-able SLY.

(for the first time only, you'll have to M-x sly-setup before to correctly setup contribs)

Melpa-less install

Since this is an external contrib with both Elisp and Lisp parts, merely loading the Elisp will have little effect. The contrib has to be registered in SLY's sly-contribs variable for SLY to take care of loading the Lisp side on demand.

For convenience, the sly-named-readtables-autoloads file takes care of this automatically. So the following setup in your ~/.emacs or ~/.emacs.d/init/el init file should be enough.

;;; regular SLY setup
(setq inferior-lisp-program "/path/to/your/preferred/lisp")
(add-to-list 'load-path "/path/to/sly")
(require 'sly-autoloads)

(add-to-list 'load-path "/path/to/sly-named-readtables")
(require 'sly-named-readtables-autoloads)

In case you already have SLY loaded and running, you might have to M-x sly-setup and M-x sly-enable-contrib to enable it.

sly-named-readtables should now kick in in Lisp buffers. You must have named-readtables setup in your Lisp before it takes any actual effect though. That's easy, just (ql:quickload :named-readtables).