|
From: | Elias Mårtenson |
Subject: | Re: custom-set-variables considered harmful |
Date: | Fri, 24 Nov 2017 15:04:22 +0800 |
> When writing customizations, instead of writing
>
> (custom-set-variables
> ;; Big ugly warning which doesn't help enough.
> '(VAR1 VAL1)
> '(VAR2 VAL2 nil '(REQUEST) COMMENT)
> '(VAR3 VAL3)
> ...)
>
> we write
>
> (autogenerated-custom-settings
> ;; Big warning, still, but less important.
> (setq VAR1 VAL1)
> (require 'REQUEST)
> (customize-set-variable VAR2 VAL2 COMMENT)
> (customize-set-variable VAR3 VAL3)
> ...)
Here's a sample patch to do that. Comments?
[Prev in Thread] | Current Thread | [Next in Thread] |