diff options
author | Case Duckworth | 2022-01-05 11:26:05 -0600 |
---|---|---|
committer | Case Duckworth | 2022-01-05 11:26:05 -0600 |
commit | 1b9d1c584437d86a3d55d076ca9b8658063a4837 (patch) | |
tree | 484b298e4d46358d2e5d9359b9a7079d353d70c8 /lisp | |
parent | Improve +sunrise-sunset (diff) | |
download | emacs-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.el | 4 |
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 |