From: Ergus <spacibba@aol.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "\"T.V Raman\" via \"Emacs development discussions.\""
<emacs-devel@gnu.org>
Subject: Re: Setting rectangle-preview face in init.
Date: Fri, 11 Oct 2019 17:44:29 +0200 [thread overview]
Message-ID: <20191011154429.dcoogy5kqzdhdhh7@Ergus> (raw)
In-Reply-To: <jwvftjz4b26.fsf-monnier+emacs@gnu.org>
On Fri, Oct 11, 2019 at 10:22:29AM -0400, Stefan Monnier wrote:
>>>> I am trying to set the rectangle-preview face in my init.el
>>>How?
>> (set-face-attribute 'rectangle-preview nil :background "#cd0000")
>
>Why? Use Customize instead. It really works much more sanely for faces.
>
>
> Stefan
>
Thanks for the answer. I will find another way in any case. But this is
the first time this happens to me.
Just to comment:
I don't like to use Customize interfaces because:
I have my config in a git repo:
1) It changes my init file if I don't define a separate custom-file, and
it modifies it every time I install a package (sometimes just to test)
or change an option.
2) It adds all the stuff outside my pretty ordered config based in
use-packages at the end of the file or where it decides.
3) Some complex setups breaks it (like defining conditional faces
depending of some if conditions (window-system, (display-graphic-p)).)
4) Defining a custom-file (to not track it with git after every
update/package install) then all the faces customization go there too,
so my config will be not portable without it. The init file should
contain only one custom-set-faces... so I cannot mix them.
I won't ask for a change for anything of this, as most of the people
seems to agree with it, but in my case it only makes things more
difficult and disordered.
next prev parent reply other threads:[~2019-10-11 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-11 12:45 Setting rectangle-preview face in init Ergus
2019-10-11 14:00 ` Stefan Monnier
2019-10-11 14:10 ` Ergus
2019-10-11 14:22 ` Stefan Monnier
2019-10-11 15:44 ` Ergus [this message]
2019-10-11 16:13 ` Daniele Nicolodi
2019-10-11 16:41 ` Stefan Monnier
2019-10-11 18:50 ` Yuri Khan
2019-10-11 14:08 ` Eli Zaretskii
2019-10-11 14:11 ` Ergus
2019-10-11 14:35 ` Eli Zaretskii
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=20191011154429.dcoogy5kqzdhdhh7@Ergus \
--to=spacibba@aol.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).