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: Rainbow-delimiters highlighting { and } for tex and latex Date: Wed, 7 Sep 2022 21:29:13 +0200 Message-ID: References: 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="6711"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wilnerthomas@tutanota.com, help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 21:30:59 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 1oW0lH-0001Yv-86 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 21:30:59 +0200 Original-Received: from localhost ([::1]:56030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW0lG-0001N0-Ar for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 15:30:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW0jg-0001Mb-93 for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 15:29:20 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW0je-0005Fv-Ky for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 15:29:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1662578953; bh=8ehXgAQQGlTEYX9OTnZQ+7M3auMIRhjaqSHWyWVMt4c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=SxE6Wg9Uy+5PmZVUlQQP2XGOeam8mW8I9Q52PFCwNSlJ7qjpOjoBry2BamSNYKoR2 OGC2+M1xk9oCmr3ksw2kWamLs24wOESiZ7VPO3ZZ9YSdf9b+EL9aUX+XEea1ByCvIy sC0cuJA1SLtr9rWJIbDbxaW7hyWTwGcXYd5Y3H7s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Wed, 7 Sep 2022 21:29:13 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:DpbiGV/ODCdr6dzllP4hREIa8vgEwQuWZcJ4u5qD1pmzaNdVLITTeItJODCbGb7kLdzlu kxQh9gCp0RsgDE5DVYldm5Y7bkhNwyU8VTlv+3Q9eA69feZyRTyKIyZ2O9kzrFoeRZ7T8y3aoWFz /V8Dma8C74TH5FJNl43X03ALSQARWr8iDadz09hDtWMLgo1UZMywVO9vkRezytNbTITyjQrn/vbU 3+ckvrfePzOW7qcgXJW0KKnpIh9+oB/OtSqbF3SOtIYFbqMIw166IyotjaNPFpHXU+Jiu/w6rmv4 YU= X-UI-Out-Filterresults: notjunk:1;V03:K0:spNj9DiWFkE=:A3Yfg9U8Pj6JHOeRFLOcYV +bPzFXoz/69G5dODk/IscWz/9a25MLGyEVvN2WfbR7oH3QldYXGGU4rNiaUKj5pHTxwYULtsO n3OOy1BnzWlXISvuNQJrGTfPwkjalP3LZrgSGZ6OOZ4Ae5DmVEcVPipi8vRf3yENnBXfzXVtE jhiA/HNXPTYegi5lBHsacmKlTq/MgJSdkvdtx+SGassDLu1MiM7f6MeCXHZEjnXMRC6AT7q+G pY+tYsv4vSnyEula57ercwczJ3K5gnFgP6sVRkfkDA438NKpej5tdfmMWNQJ5OJy9onXfdQ7L KnTv6Nf0uHNWISWK2w73a8JBiMbjK2sOlzB4zcF0DdY2yAoyD/q1i45PrSkkn+jDB6nwKyg1h 2SNCAIH8QzufpWLwYV+hCtZfGyJE3SkiQar2quZ7FaFFGClL0Hz4zh/Gve64OEe0FnbGahgjv DxV2BnJrbrTSzPpEYb2qY4OvvUcs4GeguuxYoxwm+/9aWrXrBxm932LkGkDtymV9ceFrlarZV XsqM9aYTTVGZA1a01/VHo/KKQFCXinY7o3zPp0G/zjZF2cMsqzHOOsJ+iw+GWWOPAk25nSYXf js9M+HBpFZkH/4iKCqIw4uoOy7Cx9cpWki+r2mCCM6Hxu/anmkVlA6nKJzQe/4JQxtOxa/L37 dofvTyaCgx+hmamIIQW2IyQr5BSt/MZXbM8nKKChydWfFap9CcGvmYABz38IBXpouBV38G9HC zojvbr014tLTYiot7yBJ9md6HooXHCzh1OJYvE2wNZ604WsYMHM4S6R3rJik1YfjrY7+4+pV Received-SPF: pass client-ip=212.227.17.20; 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:139313 Archived-At: > Sent: Thursday, September 08, 2022 at 1:34 AM > From: "Stefan Monnier" > To: wilnerthomas@tutanota=2Ecom > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: Rainbow-delimiters highlighting { and } for tex and latex > > wilnerthomas@tutanota=2Ecom [2022-09-07 15:23:57] wrote: > > Sep 7, 2022, 13:14 by help-gnu-emacs@gnu=2Eorg: > >>> Stefan, you are right=2E=C2=A0 But it handles only lisp commands, co= louring > >>> initial=C2=A0 "("=C2=A0 and final=C2=A0 ")"=2E=C2=A0 But > >>> not for highlighting=C2=A0 "{"=C2=A0 and=C2=A0 "}"=C2=A0 for=C2=A0 "= tex"=C2=A0 and=C2=A0 "latex"=2E > >>> > >> > >> That is not my experience (from a few seconds before sending my > >> previous message)=2E > >> > > What do I have to do exactly? >=20 > I don't know=2E For me it just works (I don't use rainbow-delimiters, > I simply turned it on to double-check my intuition before replying to > you, and it worked for (=2E=2E), {=2E=2E} and [=2E=2E] in a `latex-mode`= buffer)=2E >=20 >=20 > Stefan =20 Have scrutinised this=2E The problem is the atrocious design around the i= mplementation of tex and latex major modes=2E This will work (add-to-list 'auto-mode-alist '("\\=2Esty\\'" =2E LaTeX-mode)) (add-hook 'LaTeX-mode-hook #'rainbow-delimiters-mode) But this will not (add-to-list 'auto-mode-alist '("\\=2Esty\\'" =2E latex-mode)) (add-hook 'latex-mode-hook #'rainbow-delimiters-mode) Work needs to be done so that there is just "tex-mode" and "latex-mode", and getting rid with all this TeX-mode", "LaTeX-mode", TeX-mode-hook,=20 LaTeX-mode-hook, nonsense=2E Tools are supposed to work well together but this is not the case with "tex-related" modes=2E