From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: Replacing custom-set-variables Date: Sun, 14 Sep 2008 01:39:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87myibregu.fsf@kobe.laptop> <87r67ncpoc.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221381806 26602 80.91.229.12 (14 Sep 2008 08:43:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 08:43:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 10:44:22 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 1KenDQ-0000Aw-EM for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 10:44:20 +0200 Original-Received: from localhost ([127.0.0.1]:58697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KenCP-0006hj-TP for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 04:43:17 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 59.95.24.60 Original-X-Trace: posting.google.com 1221381593 16556 127.0.0.1 (14 Sep 2008 08:39:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 14 Sep 2008 08:39:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n33g2000pri.googlegroups.com; posting-host=59.95.24.60; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052912 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162219 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:57562 Archived-At: I sympathize with the OP. Using customize is like having all the linux customizations in /etc collapsed into one humongous file. Or equivalently like the windows registry without any namespaces. Of course as others have pointed out setq does not (always) replace customize variable. But when it can (which is mostly) it is neater and more 'programmer- like'. I will also add that if you use setq you usually want to do the setq- ing as an attachment to the hook for the mode whose customization you want to do. Setq just-like-that (ie standalone) will usually not work. For example here is my recentf setup (add-hook 'recentf-load-hook (function (lambda () (setq recentf-save-file "~/.emacs.d/recentfiles")))) (recentf-mode 1)