From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Replacing custom-set-variables Date: Sat, 13 Sep 2008 15:20:11 -0700 Message-ID: <002b01c915ee$e3dab210$0200a8c0@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221344489 25296 80.91.229.12 (13 Sep 2008 22:21:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2008 22:21:29 +0000 (UTC) To: "'Mauricio'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 00:22:25 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KedVO-0004cb-Sr for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 00:22:15 +0200 Original-Received: from localhost ([127.0.0.1]:48482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KedUO-00049j-70 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 18:21:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KedTL-0003E1-2O for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 18:20:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KedTI-0003AU-9w for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 18:20:06 -0400 Original-Received: from [199.232.76.173] (port=52288 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KedTH-0003AE-R2 for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 18:20:03 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:15201) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KedTH-000786-LP for help-gnu-emacs@gnu.org; Sat, 13 Sep 2008 18:20:04 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m8DMK0OQ029517; Sat, 13 Sep 2008 17:20:00 -0500 Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m8DMJxJq023280; Sat, 13 Sep 2008 16:19:59 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 13 Sep 2008 15:19:58 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AckVxUP6+gu7oePcR9OQHF8/RCHo/gAKMw9Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57542 Archived-At: > 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.