From: "Drew Adams" <drew.adams@oracle.com>
To: "'Peter Jones'" <mlists@pmade.com>, <Help-gnu-emacs@gnu.org>
Subject: RE: custom-set-faces [was: Highlight Active Window]
Date: Sat, 10 May 2008 10:44:13 -0700 [thread overview]
Message-ID: <000d01c8b2c5$764d0680$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <m2zlqy3wiq.fsf@pmade.com>
> > You should not write custom-set-faces by hand.
>
> I've read this statement before, but I've never seen any explication
> as to why. Is it just because customize will blow it away?
>
> I use custom-set-faces in a separate elisp files, but not in my
> custom-file. I also never use customize, so maybe that's why I've not
> seen any issues.
>
> Any other reason to not use custom-set-faces?
Someone more knowledgeable will no doubt correct me, but I think that is the
only reason. The comment in a `custom-file' or .emacs says this:
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
That explains why and where you shouldn't hand-edit the `custom-set-faces' entry
- or should do so only with care. It might be overwritten automatically by
Customize. That assumes a context of (1) using Customize to change a value and
then save the change and (2) Customize saving the change in the same file that
you edited.
So, no, I don't think there is any problem doing what you are doing, as long as
you never let Customize save to the same file that you edit.
That said, there is also no special reason to use `custom-set-faces' to do what
you want, unless you find it more convenient.
next prev parent reply other threads:[~2008-05-10 17:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 15:41 Highlight Active Window Lex Fridman
2008-05-08 22:10 ` Lennart Borgman (gmail)
2008-05-08 22:11 ` Peter Dyballa
2008-05-08 23:44 ` Lex Fridman
2008-05-09 6:07 ` Lennart Borgman (gmail)
2008-05-10 17:21 ` custom-set-faces [was: Highlight Active Window] Peter Jones
2008-05-10 17:26 ` Lennart Borgman (gmail)
2008-05-10 17:44 ` Drew Adams [this message]
2008-05-10 17:57 ` custom-set-faces Peter Jones
2008-05-10 18:15 ` custom-set-faces Lennart Borgman (gmail)
2008-05-10 18:22 ` custom-set-faces Drew Adams
2008-05-09 8:25 ` Highlight Active Window Peter Dyballa
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='000d01c8b2c5$764d0680$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=mlists@pmade.com \
/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.