From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fatiparty--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Colourising tex keywords Date: Tue, 11 Jan 2022 18:09:38 +0100 (CET) Message-ID: References: <878rvms8zg.fsf@zoho.eu> <87sftup6mf.fsf@web.de> Reply-To: fatiparty@tutanota.com 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="38935"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 18:19:48 2022 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 1n7KoC-0009qK-Vm for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 18:19:44 +0100 Original-Received: from localhost ([::1]:49814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7KoB-0004z4-G9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 12:19:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7KeY-0004PO-Po for help-gnu-emacs@gnu.org; Tue, 11 Jan 2022 12:09:49 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:55950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7KeV-0006pg-HP for help-gnu-emacs@gnu.org; Tue, 11 Jan 2022 12:09:46 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 6DF5CFBF85B; Tue, 11 Jan 2022 17:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641920978; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=FjXrSxE66C1ew3xtdGZi+BISrofn49zXSrk+FO+15JA=; b=RWj5+8Hkee4DMewq/ppiPEo3/Yg0uV+Rh4nFDmugtAANt5ici4iz22CMQnZKno4s xol+fF1LyFgNdVrg5q/7v6WVofc97beFh+r6qWXO/d91WdOTrvegUr61WfgB6IYSOXG 5EfJ6XSre89EiSFZxbvYrwO9zddG4+OVHqnhAQkBKwcla5iFpkBp/KoGYhicMAEQnSK tImMc8fIasswvX8B/3AvWAvGzu7/ILQRLh+j7bD/tC3Jw9SeXvZdC4yq+cYRs7sqn/B LmHcg2ugMKVudSKHgEDNxCStmwVYBO1KgeMaqriXasJ8nSFgZJcIirH7autti+JyUIF WN0AeMJXcg== In-Reply-To: <87sftup6mf.fsf@web.de> Received-SPF: pass client-ip=81.3.6.162; envelope-from=fatiparty@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:135210 Archived-At: Jan 12, 2022, 04:41 by michael_heerdegen@web.de: > Emanuel Berg via Users list for the GNU Emacs text editor > writes: > >> See if this works in Emacs Lisp mode, if/when it does (it does >> here) do the same for your mode, if it doesn't work there, >> well then something is up ... >> > > Yes, that code works for me, too. > > Maybe font-lock-mode is just not enabled in the tested buffer or so. > > Michael. > Have been using "texcom-typeface" although the colour definition for the tex keywords is in "texcom-colour".=C2=A0 When I use "texcom-colour" in "texcom-cluster", I do not see the change. Perhaps I need some additional calls to enable "font-lock-mode"? (defface texcom-colour =C2=A0 '( (default :inherit bold) =C2=A0=C2=A0=C2=A0=C2=A0 ( ((class color) (background light)) :foreground "= #00FF00" ) =C2=A0=C2=A0=C2=A0=C2=A0 ( ((class color) (background dark))=C2=A0 :foregro= und "#00FF00" ) =C2=A0=C2=A0=C2=A0=C2=A0 (t :inherit font-lock-builtin-face) ) =C2=A0 "User defined colour typeface for tex command keywords.") (defface texcom-typeface =C2=A0 '((t :inherit font-lock-keyword-face))=20 =C2=A0=C2=A0 "Colour typeface for tex command keywords.")