From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Prettify keywords Date: Wed, 3 Feb 2021 22:37:02 +0100 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="6386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 22:38:42 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 1l7PrF-0001Yr-L5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 22:38:41 +0100 Original-Received: from localhost ([::1]:44654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7PrE-0004p0-KZ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 16:38:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Ppk-0004of-CO for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 16:37:08 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:48979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Ppi-0000VP-BR for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 16:37:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612388222; bh=9qOqjI++y2Ew9H7qsY0MXjvWYNlT2aPbAGqFS1j6qwE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JQtF1lNqNYYdugZAQHHS4Ikk4/Y2akYtoyZxfCSb/Mf3VOC5/uB22OUN58iOQgh3M GfSgkX3Uis5KzT7i2n6ZypTXui7Qns22ZRSqXVSjENvfONUWQk9BHDl1j8AQFUeRAn 6OZ5F2pL7eB9XSbfgNU0wX6KVmWWNK5YAWi3CoBY= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Wed, 3 Feb 2021 22:37:02 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:nzDXeWzPZFKVHJe75UcQNRmIJixR50GsqZ1fDPRiM5y9jXUwmlxjBKv787FDeGhB8HAi2 RgUcG3aFVxy2CKbcNYWnH5EnL22qiSpn/lWDk9m++Ccdc7lnBWtrRuVOrOo3c4r5CfUWajbDQyZv 71etvdYdJ9OHQYKD/DUXX1ZiJPJAOKOuuHMrNqc4A4MSjjk8Clhk5q33pxIlNEMlwuFx1nKtTjZb 6omJNe3V6Fx+ZRcnpwGITkGxl5Q5x0VtXYb0E36/AuY1NDfZ41NVbFM11PO90HXkWVtyiIWDAvbt Dc= X-UI-Out-Filterresults: notjunk:1;V03:K0:iS9I3YEE+TY=:8pSsR2E/n8zPgjDW4Tfbb6 6lb8u2WWDpyu9P13yZIprOrJacmYcqnHJkN7jMZlmChdxSmzC/EscR7qY55+UwRx55GsRA8Ws HfJ7nANoi9vFNp/HxwFwvgFp4Lzd1Cx7PMjXGUwJ9YZ1mRdB5sVJaHBxRDVUj/THE1Ysrl1UZ lkBE5NQ+jy8w0H4p7GOw/AcAOneW08LNIsb3047F6LiL2uJqvW/5sC1yJjuiBX/X3hPre4U+2 cJFaDrp8xqss7juvvQG7GDtSeuLcy6207f/ZvOUIalYqEV3gKURVFcejKfb4vUla1mF6FOn7N yOlJEz/d4X7htI1J7mCPZSafnWr5g4Cp0yMj8U+D9FoGX44xIdSUw8AG1hHAbCqaAoooKzbVK VUQ9ohABWG1fT9GgTV4OPWc7EuWMIXiY1bGR+rYjpup/CdRQyS68Su9BDBvkGfBpA9djqJc/V CRfnwsGfBEKVtykHBSgGKI8ITxGMUwSu9p0TiWjrap/cVSCV083d6ho0XIBoIKEq2pWWRNhaY 7jsgtQ8ci+ONScju6pR7623GGr5rn+NsJxVsYUoncrJlz1E6P19vIjIHYrfZiHHGm56S+Npnb nH7JOTQH/Y+q4= Received-SPF: pass client-ip=212.227.17.22; envelope-from=pietru@caramail.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:127601 Archived-At: Have looked at prettify-symbols-mode and it is defined in prog-mode=2Eel=2E This gets me quite confused as I thought that I can only activate a single major mode at a time on a particular buffer=2E Thank you for helping me make some progress on this as I thought that the prettify functionality would be hard to implement on tex commands whilst I am in texinfo-mode=2E > Sent: Thursday, February 04, 2021 at 9:27 AM > From: "Gregory Heytings" > To: pietru@caramail=2Ecom > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: Prettify keywords > >=20 > > > > I am asking where does texinfo-mode call prettify=2E And which pretti= fy=20 > > code is it using=2E > > >=20 > Texinfo-mode does not call prettify-symbols-mode (I believe no mode does= =20 > that by default), which is why I wrote: >=20 > If you want to turn [prettify-symbols-mode] on by default, do: >=20 > (add-hook 'texinfo-mode-hook > (lambda () > (push '("\\alpha" =2E ?=CE=B1) prettify-symbols-alist) > (push '("\\beta" =2E ?=CE=B2) prettify-symbols-alist) > (prettify-symbols-mode))) >=20 > In the last line, "(prettify-symbols-mode)" calls prettify-symbols-mode= =2E=20 > If you want to see the code of "prettify-symbols-mode", type C-h f=20 > prettify-symbols-mode RET TAB RET=2E >