Symex provides convenient ways to add common prefixes and also remove them from any expression. This is useful especially when editing Lisp code for managing syntax quoting, e.g., turning (a b c)
into '(a b c)
— a standard thing one might do in Lisp — without needing to exit Symex mode.
You could configure any prefixes here that you may find yourself using often, and they don’t have to have anything to do with quoting, or even with Lisp.
By default, C-'
and C-,
cycle through standard quoting and unquoting prefixes ('
, `
and ,
, ,@
, respectively) recognizable to all Lisps. But some Lisps, such as Racket, provide additional quoting styles that you may want to add here. To add custom prefixes, add something like this to the :custom
section (not the :config
section) of your use-package
form:
(symex-quote-prefix-list (list "'" "`" "#'" "#`")) (symex-unquote-prefix-list (list "," ",@" "#,@"))