Re: defcustoms in style/*.el
Ralf Angeli <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Reiner Steib (2005-03-04) writes: > was have some defcustoms in style/*.el: [...] > My feeling is, that this should better be placed in tex.el or latex.el > (as I did for when introducing defcustoms in style/graphicx.el and > style/beamer.el). I think it is better to have those variables > available [1,2] after loading AUCTeX, no matter if a beamer, amsmath > or ... is used in this Emacs session. > > An alternative approach would be to collect those defcustoms in a > separate file, say (la)tex-style.el, and require this file somewhere. > > WDYT? Would it be possible to autoload these defcustoms? At least the Elisp manual states that this can be done with ;;;###autoload cookies: ,----[ (info "(elisp)Autoload") ] | The same magic comment can copy any kind of form into `loaddefs.el'. | If the form following the magic comment is not a function-defining | form or a `defcustom' form, it is copied verbatim. "Function-defining | forms" include `define-skeleton', `define-derived-mode', | `define-generic-mode' and `define-minor-mode' as well as `defun' and | `defmacro'. To save space, a `defcustom' form is converted to a | `defvar' in `loaddefs.el', with some additional information if it uses | `:require'. `---- -- Ralf