diff options
| author | Kรฉvin Le Gouguec <kevin.legouguec@gmail.com> | 2024-03-17 12:51:53 +0100 |
|---|---|---|
| committer | Kรฉvin Le Gouguec <kevin.legouguec@gmail.com> | 2024-03-17 12:51:53 +0100 |
| commit | d0b273a546019ca3efd9ce487ce0cc270d8d8a55 (patch) | |
| tree | 84124398ddf1208e286988b6c31a0e437f616a71 /.emacs | |
| parent | 9b10512d9dc411dcd5442286c43a9ccfd0cfddb0 (diff) | |
| download | dotfiles-d0b273a546019ca3efd9ce487ce0cc270d8d8a55.tar.xz | |
Fix broken macro
IIUC the previous version ran customizations immediately during
expansion (ultimately expanding to the last customize-set-variable
value), instead of generating forms that would run those
customizations at appropriate times.
Guess I never run Emacs <29 ๐
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -19,8 +19,9 @@ (if (fboundp 'setopt) (defalias 'my/setopt 'setopt) (defmacro my/setopt (&rest pairs) - (while pairs - (customize-set-variable (pop pairs) (pop pairs))))) + `(let ((pairs (quote ,pairs))) + (while pairs + (customize-set-variable (pop pairs) (pop pairs)))))) ;; Some list variables I don't set via Custom. I can't tell Custom ;; "add this element, take those two away": I need to "set in stone" |
