(defvar example
`((,(rx "example") . ,(lambda (line) line))
(,(rx line-start "foo") . ,(lambda (line) line)))
"Is there a better way to write an alist where
the keys are regexps and
the values are lambdas?
This works, but I feel like I'm using the comma a lot.")
Is there a better way to write an alist where
the keys are regexps and
the values are lambdas?
This works, but I feel like I'm using the comma a lot.