From ccaf60abbd23bd36af5ed9300715409f63d605d4 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 3 Jul 2024 15:21:40 -0400 Subject: [PATCH] Add dbg macro --- emacs/.emacs.d/config/init-lib.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs/.emacs.d/config/init-lib.el b/emacs/.emacs.d/config/init-lib.el index ce0b693..2e90514 100644 --- a/emacs/.emacs.d/config/init-lib.el +++ b/emacs/.emacs.d/config/init-lib.el @@ -134,4 +134,10 @@ (kill-new (message rand))) rand)) +(defmacro dbg (form) + "Print the value of FORM and return it." + `(progn + (message (format "%s: %s" ',form ,form)) + ,form)) + (provide 'init-lib)