Closed shosti closed 10 years ago
It doesn't seem like they usually are, but it seems like it would be nice to edit options without requiring the library.
You can set any variable prior to loading the file in which it's defined, anyways.
The suggested additions look good. :+1:
Although, autoloading a variable is unnecessary for the purpose of setq and add-hook, I think an autoloaded variable still has the advantage that you can use add-to-list
on it without requiring the package.
But that's just a technicality. I don't think anyone uses it for that purpose.
I was thinking more in terms of the customize interface--it can't pick up non-autoloaded custom variables, right?
You can't customize a variable that hasn't been loaded, if that's what you mean. But after you customize a variable, you can safely restart emacs and the customization system won't have any problem with the variable not being loaded.
One thing I'm not entirely sure about: should
defcustom
s be autoloaded? It doesn't seem like they usually are, but it seems like it would be nice to edit options without requiring the library.