From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Setting rectangle-preview face in init. Date: Fri, 11 Oct 2019 17:44:29 +0200 Message-ID: <20191011154429.dcoogy5kqzdhdhh7@Ergus> References: <20191011124530.kzj7ucywfeysxbty@Ergus> <20191011141022.jqcc4d6ic4qvstvl@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29018"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: "\"T.V Raman\" via \"Emacs development discussions.\"" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 11 17:51:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIxC0-0007Pf-RL for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2019 17:51:01 +0200 Original-Received: from localhost ([::1]:52484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIxBz-0008BW-LT for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2019 11:50:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIx5z-0004Er-Ls for emacs-devel@gnu.org; Fri, 11 Oct 2019 11:44:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIx5y-0003VE-7U for emacs-devel@gnu.org; Fri, 11 Oct 2019 11:44:47 -0400 Original-Received: from sonic307-54.consmr.mail.ir2.yahoo.com ([87.248.110.31]:46107) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIx5x-0003Ua-OI for emacs-devel@gnu.org; Fri, 11 Oct 2019 11:44:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1570808683; bh=DLtnZzOHRu7ZHSleHTFheg2yzsty9rBtQ/3obcj8BaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=a5jaWSVSQO+V7fQmkhqbbcmSrEV6jU0zo2bhRSR/Omqox6xEbSp7F0KZd4P1py51vEtiF2DZ8mGAgTbAFAWxtfYTMsJTDNrkqkRSv2vnLAF40SRW3yJwZ39ZBhlM0KWHWjUCS/24gnrevY1b2Cv1RJh1ZS1WT+Gu5Kk3c1r2ElkdnDjuYY5NNiHrQeiac08zUExOPUj9LX4bEHt0j4/6NXa+zRSKjx63vyOoMVr653Yg5DXMM/nOowi4KtE3uchrBIczAFa5kDmNFlv0yoGUovQK+hYP9LDT2oxWR5MuBjIKWdisAr+EMIJfF7qJEDHySEVWlju9ajHYJABG+0mkwg== X-YMail-OSG: W6QLK4AVM1lRFUPu5d68oaJTXB152SDVTY5CaLCyWJJXsHpLGRL5mUrpI7QbjAY r2lvH_TfmiCuLYqie1ECzpNpPB_rDWEqX_q00SD0lIvg11sF9mDyY_cYHdfjGnI08p3uKOr3hOO9 L0Wxq7IZeiuU4mvkojmE3y.9BPWuVRHUFY0l69AB3xphna3u_WWYjK633J_QQM19bwkLGnl_Mn.j STCPwWYpVQwaqksRpFx4f53gM8FagQACCyvAaWPfUDyFwCf7XiynxwDnr8wzg3a_UB6UXs4XxC7O xJmrEwQkHS2k_D7C_iS2nP7jn7_aU.12Iw3jvrGG6olMnQYd44Mw9_nNFNGr5UsNPithpproB5qN NLr7O_YMh1lDZIA2Mwu5TpO3xeAfruO7AIn42gN6GsH83OG7je0RX3xh54ClYyy43yvDrYDEg0OX Tzayp7M8_MXgnYStwY7HeRjSTM9ybbIEmEBdeVZiGDbxmhADLuPYKzlO9_bIOeg_CrSXpmsGk8O_ R6WvNFnVYeeTv2mLOg1h3dUInZJhidIb2.Mv81xB3Bcm4KLMUl9HwUOBzoMHNvaPL_CL9qaHFdQ2 BWPUC1hO6za52c2lYi4pdSQHwoyHZ_GZSduJXQHntj9eyB8xU.AQltD9dooYlv8rS.i5NCz2.8mx 2rZO279sirGbzL45Q0bwpS.zR0ixcYyuIP9zEwsa_3vO3iD8xWR7r7p9vJpcV9Xt5PbJMIKLfCtO 7DwxoEIuWFH_uuKzcfETeBrIqTsHFIVLtLzbX6Z.WyZ85TB18tsfKiW8Ic9u559r7sweF1Uw_MSR TQaY2h0Fysr0v36ooBEzVZS37U244jXGXmMggOMyrw Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Fri, 11 Oct 2019 15:44:43 +0000 Original-Received: by smtp406.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 836ea989e5a0afd8b0539be88c9fb27a; Fri, 11 Oct 2019 15:44:42 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 87.248.110.31 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240890 Archived-At: 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.