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 23:26:52 +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="31525"; 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 23:27:46 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 1l7Qcj-00084p-DI for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 23:27:45 +0100 Original-Received: from localhost ([::1]:55000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7Qci-0008BD-BE for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 17:27:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Qbx-0008Aq-0t for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 17:26:57 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:45697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Qbv-0004Qs-60 for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 17:26:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612391213; bh=cxj3LrdRisRFQ0pKYwyiJxNYWaHjnQ0nzQvwLt+05Lg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jo+qYJ1PwScpeDADqsXQ4z2OPWpk/YAeZ1WtlcHTRbE/6DMGXfPyTABHE156eOs90 uxuQDbTxjQIUVdDI7Utb0W4To6xLEGWesLC62p5PPQ7KFm2xf7Mc5gQvA7QCDEGuC6 Bn2TPqXVmYIdMXAeI6retnIqCU3r1oNplqNKTApM= 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 23:26:52 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:GywPqnq+7IvQkat7b8CXMQULHhQtMBE3AZ/X59rrbccrDoq6ufjD13E4+8EwJOMw/3OcL dtXSzE6WWhAN0b7/r3CpUhD2hEA/W9x/JzkTplT30uKva3Y2U7rh4ClHhpEYMnJWc8rUOX987EQG WoUaRFim8k5qgf0hS5Tqf0Eje1ftiMMZv39KLZqfKSC4bOqNZPH6RLY6qJfObbhRF0dxzzbJEQvf E/2EARgqkApgXgZIF9mZh0VWhV0znLSOVKvkJ9XNvPJztMy7y7OqDfqHJdMw4f0HVS4ZBp2AXNLN K0= X-UI-Out-Filterresults: notjunk:1;V03:K0:jEPpSf5UOJY=:ZdfnZBi80QoreJxpd22HbQ 58+7KiVaqviFVeAaqPcBaqt0Ydex16ps5xBezOS63pw2l7P45nL/tWnVyJsj0BJjgV63ciZJ2 RLVxu9/gIQVRZ0LD49FAOIYoNtWeKNVcTJZoAX1zEZF+N3tngmCPpn8k8O7DuDYAd80WJKm2k Z7m6PnSKi5u7C+k/t6WDTn/fbnsm8c+RdtpHxdKHu5hZcWWEHXpBTRiIVjV2swlFAT/RZMmcm 18IOtXekSJ+fve6TPqa0YUh5xIaNoHAJu47faq3w9HJemnNNQwM8lyRnpZCvKIk1WEdfuz+xj 1HwL0FGGANCm1F8hvbTEPPzoZTI6yN4B7xfOA0HlPhGSNzIb82unsCPWpNuqlD7oc2bVBcIiC cukWpdjyykAn/F8FjvWdl0OqSgKEhCQre4zKZWFYwXoKt8nIZ/U+7HehaennkggIrTVNv2THr VNBk/A5Tx0ECZy9KxCu1cMgvbWAx/r1oXU1UHVpez80DSOdSrztBBeGmrydevhCt3rZt+E8id xb7orn+Xyc7okeCo7jCh+GEyBRh3nPiAVmqz+cipYgNrnq3zOyHooxC1wkjKPAPLsjuk7ccDr d5XHaLtT1xG4A= 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:127611 Archived-At: Currently I can use the following code, which will take care of "\alpha" and "\alpha\beta"=2E But not "\alpha-\beta" or=20 "\alpha+\beta" which are completely appropriate in mathematical expressions=2E Can this be achieved such that "\alpha-\beta" gives =CE=B1-=CE=B2=2E (defun pretty () (push '("\\alpha" =2E ?=CE=B1) prettify-symbols-alist) (push '("\\beta" =2E ?=CE=B2) prettify-symbols-alist) (prettify-symbols-mode)) > Sent: Thursday, February 04, 2021 at 9:41 AM > From: "Gregory Heytings" > To: pietru@caramail=2Ecom > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: Prettify keywords > >=20 > > > > Have looked at prettify-symbols-mode and it is defined in prog-mode=2E= el=2E=20 > > This gets me quite confused > > >=20 > I understand, but it shouldn't confuse you=2E It happens to be defined = in=20 > the file prog-mode=2Eel, but it is nonetheless independent from prog-mod= e=2E >=20 > > > > as I thought that I can only activate a single major mode at a time on= a=20 > > particular buffer=2E > > >=20 > That's correct indeed=2E >