Add dbg macro

This commit is contained in:
Jeremy Dormitzer 2024-07-03 15:21:40 -04:00
parent 893a673616
commit ccaf60abbd

View File

@ -134,4 +134,10 @@
(kill-new (message rand))) (kill-new (message rand)))
rand)) rand))
(defmacro dbg (form)
"Print the value of FORM and return it."
`(progn
(message (format "%s: %s" ',form ,form))
,form))
(provide 'init-lib) (provide 'init-lib)