From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: custom-set-faces for various file types Date: Sun, 22 Nov 2020 22:16:45 +0100 Message-ID: References: <87sg91cdpd.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13461"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 22:19:17 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgwlR-0003Pd-6E for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 22:19:17 +0100 Original-Received: from localhost ([::1]:47338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgwlP-0004mv-VL for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 16:19:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgwj4-0004mh-GO for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:16:50 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:56631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgwj2-0005Nk-9T for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:16:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606079806; bh=5n0F7RM4HtjbdxNtoVBWJR8MFAVnp+OX5/U+2Gabm/Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=im+lrvDA60yff5/12pus9EkTdGUIkzVYQKq31/rA1UFMLc2W66T7Ahj8ZEAV7EKJG uhG28FgvP4JbcKHACIuAeLuh/SK7aTcmU+Sou9bUXj3Zie0yqFkJBlYM7FBFOdgSVx uTxr/KsfuYEE5mT4NfHo+DfvXiFLWDTEze1DyNzU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Sun, 22 Nov 2020 22:16:45 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87sg91cdpd.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:xd/loZKDMGnDZwrNJ4R3yQbkw3AcWMqexsYM5BJHkEba8mFRnv+5xIZ55l7ronHgCFXfs vmZ3jLlziEe422SSm6pgGClS/Y7sEWad4m6tcasEvu8qPLGKhxI+MuYgL+J3oDSm2aeZn/iodRld EZy5sDtC1mIY3loJQB26vkxUtCiyo0W35tIWGb8RJYp5GkW0sWI8w3ZCut4GFKtWGZmuXS3Wl5ZR vpqBl/wPClp8IimR0TnrHNyrE5W+pEdhH7lVgV6tVHVf9wbkhR02QU9WPWLjlliL9s5oo48TuGPw kM= X-UI-Out-Filterresults: notjunk:1;V03:K0:DR6u1h7DcIg=:RNb8Zk3hfUrgXDWRnpRgUE 0XMpIRhN9Y3IZrfYGWfV2/G/k5XZ++MLxFN318anFWnNAuvD+jLjl2gENslNLn2KMKEuyH6Is Lmr/ZQ1I8xXiSD7uLavCiavQcuzs8urMbz+QKkmiJBAuZkvFnXZaUR6kTuewS+su7U2IOIGBC C2jl5GAsvYtgomTaIommIGfssZYk1H402oDF+7V5His+LpdPAZqCeRJ+KJhfVreUW3Xwy44J8 FGPFbYFm6NQ0DnMowaFs/9wBstzT10Dg0WLENf8hZYarGTknBgZx3GrcZtBVfeY3pLHUs9DKU +6iKnlrsdu3GSYKp/7eKQPdbUXtyIIVHiavZb3+OYiboE91OMNVmSITzEVOPQi1Zx2YdabWdy 27Ri1/irrpmJ+7FwY/k7kWO4J5Cx206EHHopytp3Qsw1RxB+YTGJK7yADmaEbKD76Vm2G34zr T7+C9cc1M1N+8TiThdfWnk5awvq0UjXS8cSYs7YmiXsvb4QvUVk0N6aRgo1UHL3zKKbLPrHoa ZuMebeSiMh1/LPj06Cua9bp6ixSZP8cTK1rfb3nbJ5vuTYc71RdVvDp/6FAhBmHJt9HkTip1E f1C85TfxujqvI= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125491 Archived-At: > Sent: Sunday, November 22, 2020 at 9:57 PM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: custom-set-faces for various file types > > Christopher Dimech writes: > > > I am setting custom-set-faces for various file types (e.g. .org). > > I see that emacs requires only one instance of custom-set-variables. > > > > When setting custom-set-faces for org mode, is it acceptable to put > > the custom-set-faces code for that file type in the corresponding > > org-init.el file (etc for other file types). > > > > Or is it a better strategy in have all custom-set-faces together? > > What is your goal? Faces looking differently depending on the major > mode? I would like that some special constructs are highligthed so that the contrast would be suitable for assistive reasons. For instance, in current texinfo modes, constructs in pure tex do not get highlighted. So I have some code that uses custom-set-faces in texi-init.el. The Manual says that custom-set-variables must be only called once. I can call it once in emacs-init.el, then call custom-set-faces in each major mode init file where I would like a change. Another possibility is to put them all together in emacs-init.el that sets the highlighting, even though I would also have separate org-init.el, texi-init.el, and so on. > Michael.