all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org, 'Mauricio' <briqueabraque@yahoo.com>
Subject: Re: Replacing custom-set-variables
Date: Sun, 14 Sep 2008 02:17:56 +0200	[thread overview]
Message-ID: <48CC5834.3080903@gmail.com> (raw)
In-Reply-To: <002b01c915ee$e3dab210$0200a8c0@us.oracle.com>

Drew Adams wrote:
>> In .emacs I have a few variables defined using:
>> (custom-set-variables
>>   '(var1 val1)
>>   '(var2 val2)
>>   '(var3 val3))
>>
>> How can I define those same variables in .emacs
>> without using custom-set-variables?
> 
> Typically:
> 
> (setq var1 val1
>       var2 val2
>       var3 val3)
> 
> But see also `setq-default'; it might be more appropriate for some variables.
> 
> As an alternative to not using `custom-set-variables', consider having a
> separate custom file, the value of variable `custom-file', and letting Customize
> manage `custom-set-variables' there. That will keep Customize out of your init
> file (~/.emacs). See the Emacs manual, node Saving Customizations.


I think that is much better since setq/setq-default actually does not
work for all custom variables. (See `defcustom' for details.)




  reply	other threads:[~2008-09-14  0:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-13 17:19 Replacing custom-set-variables Mauricio
2008-09-13 22:20 ` Drew Adams
2008-09-14  0:17   ` Lennart Borgman (gmail) [this message]
2008-09-14  0:53     ` Drew Adams
     [not found] <mailman.19185.1221326409.18990.help-gnu-emacs@gnu.org>
2008-09-13 18:08 ` Joost Diepenmaat
2008-09-13 19:05 ` Andy Stewart
2008-09-13 20:13 ` Giorgos Keramidas
2008-09-14  4:33   ` Tim X
2008-09-14  8:39     ` rustom
2008-09-14 21:30     ` Nikolaj Schumacher
2008-09-14  4:25 ` Tim X
2008-09-15 14:06   ` Mauricio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48CC5834.3080903@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=briqueabraque@yahoo.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.