From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: typeface for keyword Date: Mon, 15 Feb 2021 20:22:55 +0100 Message-ID: References: <87sg5xiav3.fsf@zoho.eu> <87sg5xusj9.fsf@zoho.eu> 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="4062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 15 20:32:19 2021 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 1lBjbX-0000xu-7Z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 20:32:19 +0100 Original-Received: from localhost ([::1]:33230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBjbW-0003m9-1L for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 14:32:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBjSZ-00080g-PK for help-gnu-emacs@gnu.org; Mon, 15 Feb 2021 14:23:04 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:43317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBjSX-0004W8-9y for help-gnu-emacs@gnu.org; Mon, 15 Feb 2021 14:23:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613416975; bh=19W3kiib2UlyFDMxkHie1nWE4KQ/wOVB2u+ox4c4Woc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=eJYAqi1RHb1ucYB0+y5g2dAg6gSjZr2oyDpXwjCVvPos6xUKoLwOUcT23pKZC3BwN hMAJcUo+bqyHk8xZ2wxILp9ZoEAq7j80fM+nGKqEN/xh95gAMrgwiXhAnIgtDYiKfh yIGB6RKAlfx9u2xV/hI2vHUYGahgMaRpJhLoj/fs= 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-bs12.server.lan [172.19.170.180]) (via HTTP); Mon, 15 Feb 2021 20:22:55 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:WSqEpOogMlgRZxhfz1pT8Q7GSm5kfajWYPPiSb/0nHSM/dmJ5gaeUHzaQ7VRqLQ4rkBCG GcdmkihjF6DgM4lyFzD1vDtkoSA7LjZL8J3s5SRpgIc6pxtLlwFggjEnSRD0fw2OHO1LYYs1JizJ ZpRjUX2aZqxNDf1csFykcoZOBfnG5+RHjoOIUhd5iG/E7PJHynxvesXQFcdUNHMnw8d6KQI1vk5K r8Mq/14bVFdfXAJsmvR+j2GCDJ/08bpIfImJJeXp7N1lqBDTRbwu71+UmRRRtLKtGAcPbJVQ8KfH 3g= X-UI-Out-Filterresults: notjunk:1;V03:K0:yKjpsGBZqLY=:OODgBKuVNGg1CLXcRXACYT EkS2hmwde0bF0TQ6dUhzALScIMDo8PHOcpblDVrsKy+758/nHQQfZ9ByHfeyPq5Fzhs0A0zCO 79u0ZumaurJAYYi/nSpeOLXe0N873goTMm5zDDEji6bLuhsJHi5WWe5FYU6U5FPoNImGGmnEn tUYLW8Q8OFpo76jBN3naZn0/GySwMrTH4siGLYthxl5EW3EpRUJBEcKWAhzQUE8IAE5Tec654 nfWHHfdqQco6YXP/yHQVyhAZ4mFWf4fSAQrKjbFgKYcwGiV7J1hyguPkkpLFc31pR2vJ+dDlS 0cX2o1vQEvPPVWGnNywKTf2IWVhVRL1tpS1WZ4DsPJOHTPLf8xP7cC+iayESJ/9WELvtZ8gse 8FHUHwC5xMfWjx1fBVZZLUgHghWUY1P8PbfrytOezwWGRdAepS7x4iIIGv6TiKkmc+6g6u4ry eEnNLObJipYC9ike6y81mv/BKjPjmOppyf5RR/Uhx8IyDuSuCjJ9hkYsr1F3mJ4ZxdpBmpobJ YMMiB4sJI8bstalcOpjgo5BssoCjoIdbyg113KLN7vfETtiwqC1knFm+VjpVX4bVC+AgX0n6W 2Uoc4i1SCqosU= Received-SPF: pass client-ip=212.227.17.21; envelope-from=steve-humphreys@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:128101 Archived-At: Have coded the following for a user defined typeface. I wonder how I could improve on this. (defface tface-foreground '( (default :inherit bold) ( ((class color) (min-colors 88) (background light)) :foreground "#00FF00" ) ( ((class color) (min-colors 88) (background dark)) :foreground "#00FF00" ) (t :inherit font-lock-builtin-face) ) "User defined colour typeface.") (defface keyword-tface '((default :inherit tface-foreground)) "Colour typeface for keywords.") > Sent: Tuesday, February 16, 2021 at 6:06 AM > From: steve-humphreys@gmx.com > To: moasenwood@zoho.eu > Cc: help-gnu-emacs@gnu.org > Subject: Re: typeface for keyword > > > > Sent: Tuesday, February 16, 2021 at 5:53 AM > > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > > To: help-gnu-emacs@gnu.org > > Subject: Re: typeface for keyword > > > > steve-humphreys wrote: > > > > > It is a very useful utility. It was > > > "font-lock-keyword-face". Am trying to define a face that > > > I can change, so that the face is updated at multiple > > > locations, by simply changing the font lock face. But this > > > makes emacs complain. > > > > > > (defface tface > > > '(:inherit font-lock-keyword-face) > > > "Colour typeface to use.") > > > > If it is font-lock-keyword-face, why don't you just > > change that? > > > > Or is it something you like about that face, that you want to > > use for your face? > > It will let users easily change the face. that occurs in various places > in the .el file. Would also like to define my own face and call that in > "tface", for instance use "tfcdye" below. > > (defface tfcdye > '( (default :inherit bold) > ( ((class color) (min-colors 88) (background light)) > :foreground "#FF0000" ) > ( ((class color) (min-colors 88) (background dark)) > :foreground "#FF0000" ) > (t :inherit font-lock-builtin-face) ) > "Colour typeface for tex commands.") > > > > -- > > underground experts united > > http://user.it.uu.se/~embe8573 > > https://dataswamp.org/~incal > > > > > > > >