"Stefan Monnier" <monnier+lists.xemacs.beta/news/(a)RUM.cs.yale.edu>
writes:
>>>>> "drv" == Didier Verna
<didier(a)xemacs.org> writes:
> But in many cases, using Custom is more elegant.
I'm not sure I understand. In what way is it more elegant ? Unless
custom is more clever on XEmacs than on Emacs, all it does it either
a variant of `setq' (which usually works just fine without having to
use a require or a hook) or does q `require+setq' whicch gets you
back to square one (after all, the poster asked how to avoid the
`require').
See :get, :set, and :initialize keywords to defcustom.
They don't help you with `define-key', but their capabilities
decidedly exceed simple `setq' or `require+setq'. Of course, it is
required that the package author actually uses them.