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)