From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.help Subject: Re: Changing into greek glyphs in texinfo-mode Date: Mon, 01 Feb 2021 13:51:21 +0000 Message-ID: <32cf26fdca5f4d310233@heytings.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9997"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 01 14:51:50 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 1l6ZcL-0002U1-OB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 14:51:49 +0100 Original-Received: from localhost ([::1]:54664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6ZcK-0002FA-PI for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 08:51:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Zbz-0002F0-MS for help-gnu-emacs@gnu.org; Mon, 01 Feb 2021 08:51:27 -0500 Original-Received: from heytings.org ([95.142.160.155]:60494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Zbw-0005FK-BL for help-gnu-emacs@gnu.org; Mon, 01 Feb 2021 08:51:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612187481; bh=JqBMam98DMrpQ9+aXU7+X9cBN4L7oD64YgzIpO4bsCk=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References:From; b=guFVZ9dISkMG1r1tT3eH67XXU9jOr728jyJh+fDxLj/8AWTZK5W0cVuunEhGZWAih 784e2fVBPwBtpcJlemVApAThnM8HiXPNHgVI+CmV8/jZG8LWLiyWz9ihWB2WZKd0sd pA6XtqO5rx9V/4Nu0EU+MjEymBTvDJ5Gh63DSAIORPnB7/SzQnK8qQV8pFDkLIHLoM US73+k1Z8LdcE/xByKOy/pnm/Xa+/Oj6RgJ+RMgJM1tT7HydQ8b9dHboGgJGm91qqE c3rWS7EG/XoOB5GRMXepWKge1hxzs9h93M0NhHNQ3WYGV+nzdb+D8+zeRQWo/Dy2pA 9QRxd+iI6s6Zg== In-Reply-To: Content-ID: <32cf26fdca23d61e7dc2@heytings.org> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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, 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.23 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:127520 Archived-At: > > Does anybody have a strategy how to do this thing? I do not think I=20 > should do a replacement, only for display, which I can turn on or off. > Follow Stefan's advice: (add-hook 'texinfo-mode-hook (lambda () (push '("\\alpha" . ?=CE=B1) prettify-symbols-alist) (push '("\\beta" . ?=CE=B2) prettify-symbols-alist))) This only affects the way "\alpha" and "\beta" are displayed, and you can= =20 turn it on or off with M-x prettify-symbols-mode . If you want to turn it= =20 on by default, do: (add-hook 'texinfo-mode-hook (lambda () (push '("\\alpha" . ?=CE=B1) prettify-symbols-alist) (push '("\\beta" . ?=CE=B2) prettify-symbols-alist) (prettify-symbols-mode)))