A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/joaotavora/sly-macrostep below:

joaotavora/sly-macrostep: Expand CL macros inside source files

sly-macrostep is a SLY contrib for expanding CL macros right inside the source file, like so:

This extension is the work of Jon Oddie, the original author of the excellent macrostep.el library, and Luís Oliveira.

I just ported it to SLY with some minimal renaming and tweaks.

Perform the usual MELPA setup and then select sly-macrostep for installation from the package menu or from M-x package-install.

Once it's done, M-x sly should now bring up a macrostep-enabled SLY.

In .lisp files you can now use C-c M-e or M-x macrostep-expand to expand a macro.

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-macrostep-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/john-oddies-macrostep-library")
(add-to-list 'load-path "/path/to/sly-macrostep")
(require 'sly-macrostep-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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4