I would like to start writing a few simple Domain Specific Languages in Common Lisp and would like the names of macros I define to be highlighted as if they were Common Lisp functions or macros in Emacs.
Below is a simple example which is not precisely the code I am hoping to write but it shows the kind of functionality I desire.
(defmacro class* (class-name superclasses slots) (let ((slot-declarations (loop for slot in slots collecting (list slot :accessor slot :initform nil)))) `(defclass ,class-name ,superclasses ,slot-declarations))) (class* graph () (nodes edges))
What I would like is for
class* in the second form to show up in magenta (given the default colours in my Emacs installation) and
graph should be highlighted in blue.
I have seen some examples of how to adjust syntax highlighting for LaTeX, but I could not extend those to work for me in Common Lisp.