summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorCase Duckworth2022-01-05 11:26:05 -0600
committerCase Duckworth2022-01-05 11:26:05 -0600
commit1b9d1c584437d86a3d55d076ca9b8658063a4837 (patch)
tree484b298e4d46358d2e5d9359b9a7079d353d70c8 /lisp
parentImprove +sunrise-sunset (diff)
downloademacs-1b9d1c584437d86a3d55d076ca9b8658063a4837.tar.gz
emacs-1b9d1c584437d86a3d55d076ca9b8658063a4837.zip
Add +defvar
For those lazy times when I want to reset a variable that's defvared
Diffstat (limited to 'lisp')
-rw-r--r--lisp/acdw.el4
1 files changed, 4 insertions, 0 deletions
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."
115 (interactive "p\nP") 115 (interactive "p\nP")
116 (message "p: %S P: %S" p-arg P-arg)) 116 (message "p: %S P: %S" p-arg P-arg))
117 117
118(defmacro +defvar (var value _)
119 "Quick way to `setq' a variable from a `defvar' form."
120 `(setq ,var ,value))
121
118(provide 'acdw) 122(provide 'acdw)
119;;; acdw.el ends here 123;;; acdw.el ends here