[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: re-loading an elisp file
From: |
Drew Adams |
Subject: |
RE: re-loading an elisp file |
Date: |
Thu, 24 Mar 2011 12:09:19 -0700 |
> > And even in user init files, practice over the years has
> > tended to reduce the habit of using setq in favor of
> > taking advantage of Customize (defcustom). There are
> > several reasons for that, including type-checking
> > and initialization with side effects (i.e., initializing a
> > variable can also call for other, related initialization
> > operations).
>
> Customize -- hmmm -- interesting (though I've never used it,
> always preferred edit-options kind of thing).
>
> But please say more about your suggested use of customize in this
> situation. Thanks!
Dunno what "this situation" is. And I don't have a suggested use of customize.
I use `defcustom' to define variables that I expect general users to want to
modify. That makes the variables into user options, which means their values
can be changed using `M-x set-variable' or `M-x customize-option'.
> Also, some more about its type checking, and its initialization
> with side-effects.
See the `defcustom' doc wrt :type, :init, and :set.
(elisp) Variable Definitions
(elisp) Customization Types
> Maybe also some examples of how you use it in your code-writing.
Check the Lisp sources that come with Emacs. Grep `:type' or `:set' or
`:initialize'.
- re-loading an elisp file, ken, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- Re: re-loading an elisp file, ken, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- Re: re-loading an elisp file, ken, 2011/03/05
- Re: re-loading an elisp file, PJ Weisberg, 2011/03/05
- Message not available
- Re: re-loading an elisp file, David Combs, 2011/03/24
- RE: re-loading an elisp file, Drew Adams, 2011/03/24
- Message not available
- Re: re-loading an elisp file, David Combs, 2011/03/24
- RE: re-loading an elisp file,
Drew Adams <=
Message not available