branch: externals/setup
commit 7562f2fa38c64e0c22693de0edd8bf30631f13dc
Author: Philip K <[email protected]>
Commit: Philip K <[email protected]>
Prevent :option values from being saved in the user theme
This tells customize not to create a duplicate custom-set-variables
block with the customized value.
---
setup.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.el b/setup.el
index c53a821..37f5670 100644
--- a/setup.el
+++ b/setup.el
@@ -363,7 +363,8 @@ the first FEATURE."
((error "Invalid option %S" name)))
(macroexp-progn
(append (and load-p `((custom-load-symbol ',name)))
- `((customize-set-variable ',name ,val "Modified by
`setup'"))))))
+ `((customize-set-variable ',name ,val "Modified by `setup'")
+ (custom-push-theme 'theme-value ',name 'user 'reset))))))
:documentation "Set the option NAME to VAL.
NAME may be a symbol, or a cons-cell. If NAME is a cons-cell, it
will use the car value to modify the behaviour. These forms are