From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Using punctuation in abbrev Date: Sun, 2 Jun 2013 11:48:52 -0700 (PDT) Message-ID: <64140c8f-7b73-43c9-bf3a-a7708d49a6e4@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370199040 32001 80.91.229.3 (2 Jun 2013 18:50:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Jun 2013 18:50:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?utf-8?B?QXVyw6lsaWVuIEFwdGVs?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 02 20:50:39 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UjDMU-0003C0-Sw for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jun 2013 20:50:39 +0200 Original-Received: from localhost ([::1]:50027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjDMU-0003nw-Fm for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jun 2013 14:50:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjDMI-0003dV-Ab for help-gnu-emacs@gnu.org; Sun, 02 Jun 2013 14:50:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjDMH-0004TR-GB for help-gnu-emacs@gnu.org; Sun, 02 Jun 2013 14:50:26 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjDMH-0004T7-9f for help-gnu-emacs@gnu.org; Sun, 02 Jun 2013 14:50:25 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r52IoJr4008160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 2 Jun 2013 18:50:20 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r52IoKf3019546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Jun 2013 18:50:21 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r52IoKoE016932; Sun, 2 Jun 2013 18:50:20 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91237 Archived-At: > >> I want to substitute $-> with a unicode rightwards arrow (U+2192 =E2= =86=92). > > > > 1. Does that mean that you want to type `$->' and use `expand-abbrev' > > each time to insert a Unicode right arrow? If so, and if you don't > > really care whether you use abbrev, consider binding insertion of a > > right arrow char to a key sequence instead. >=20 > The abbrev minor mode is active in all my buffers and it doesn't have > to be triggered by a specific key, it's automatically substituted as I > type. I plan on having a lot of easy-to-remember abbreviations for > unicode chars I regularly use, all prefixed by $ or some other less > used character so that it only triggers when I want. Calling > insert-char is too cumbersome and breaks the flow. You apparently really want to use abbrev here. OK. But to be clear, I did not suggest that you call `insert-char' each time. Not at all. I suggested that you bind a specific right-arrow inserting command to a key, and hit that key each time, instead of typing `$->' each time. IOW, in effect, add a Unicode right-arrow key to your keyboard.