From 1b9d1c584437d86a3d55d076ca9b8658063a4837 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 5 Jan 2022 11:26:05 -0600 Subject: Add +defvar For those lazy times when I want to reset a variable that's defvared --- lisp/acdw.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp/acdw.el') diff --git a/lisp/acdw.el b/lisp/acdw.el index a1d3a0b..a6fddfe 100644 --- a/lisp/acdw.el +++ b/lisp/acdw.el @@ -115,5 +115,9 @@ I keep forgetting how they differ." (interactive "p\nP") (message "p: %S P: %S" p-arg P-arg)) +(defmacro +defvar (var value _) + "Quick way to `setq' a variable from a `defvar' form." + `(setq ,var ,value)) + (provide 'acdw) ;;; acdw.el ends here -- cgit 1.4.1-21-gabe81