help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing custom-set-variables


From: rustom
Subject: Re: Replacing custom-set-variables
Date: Sun, 14 Sep 2008 01:39:53 -0700 (PDT)
User-agent: G2/1.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]