unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: rustom <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Replacing custom-set-variables
Date: Sun, 14 Sep 2008 01:39:53 -0700 (PDT)	[thread overview]
Message-ID: <a0d8fb08-e3cc-4865-b35b-21829d855f55@n33g2000pri.googlegroups.com> (raw)
In-Reply-To: 87r67ncpoc.fsf@lion.rapttech.com.au

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)


  reply	other threads:[~2008-09-14  8:39 UTC|newest]

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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=a0d8fb08-e3cc-4865-b35b-21829d855f55@n33g2000pri.googlegroups.com \
    --to=rustompmody@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).