From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Simple keybinding request Date: Sun, 09 Apr 2017 13:49:36 +0100 Message-ID: <87k26tg2zj.fsf@skimble.plus.com> References: <87d1clhp69.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1491742194 2078 195.159.176.226 (9 Apr 2017 12:49:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2017 12:49:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 09 14:49:46 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxCHp-0007bL-6Q for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 14:49:45 +0200 Original-Received: from localhost ([::1]:58577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxCHr-0005mN-RK for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 08:49:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxCHI-0005mH-Ll for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:49:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxCHD-0000ar-Nq for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:49:12 -0400 Original-Received: from avasout08.plus.net ([212.159.14.20]:38108) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxCHD-0000aY-Hs for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 08:49:07 -0400 Original-Received: from london.london ([51.7.106.231]) by avasout08 with smtp id 6Cp41v0014zaUCb01Cp5kr; Sun, 09 Apr 2017 13:49:05 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=B5zJ6KlM c=1 sm=1 tr=0 a=GV6agDUpDLF3fz6HU0prDQ==:117 a=GV6agDUpDLF3fz6HU0prDQ==:17 a=pGLkceISAAAA:8 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=Y_UEEL6bFKIt0FqzuRAA:9 a=ozoGDq29CINIDjtm:21 a=XasdLODj6WPS6usy:21 a=QEXdDO2ut3YA:10 a=0Bxcbq_0862r2KiH5XoA:9 a=ONNS8QRKHyMA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 a=yJM6EZoI5SlJf8ks9Ge_:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Yuri Khan's message of "Sun, 9 Apr 2017 18:46:55 +0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 212.159.14.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112729 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yuri Khan writes: > On Sun, Apr 9, 2017 at 5:05 PM, Sharon Kimble > wrote: > >> How can I bind '' to some keys to make it easier to ent= er >> please? I've got it as a yasnippet but its using 5 keys to enter it, and >> if I can just use say 3 keys it will speed things up. What it actually >> does is to enter a citation-repeat in mediawiki-mode. > > I was going to suggest yasnippet but I see you=E2=80=99re already using t= hat :) > > I assume the 5 keys you have now are `< r e f TAB`. If not, please > elaborate. Thanks for replying Yuri. Its actually bound to 'crep' (meaning citation-repeat). > > You can shorten that to `< r TAB` by editing the snippet (M-x > yas-visit-snippet-file), changing the `# key: > You could do away with the initial `<` if you didn=E2=80=99t ever need to= use > the snippet immediately after a word, like `foo footnotes and references, you often do, so you need a non-letter at > the start of the key. > > Alternatively, you could bind the snippet directly to a key by > specifying a `# binding:` directive in the snippet file. For example, > `# binding: M-r` or `# binding: C-c w r`. Thanks for this, its now bound to 'M-s-SPC' which makes it all a lot easier to use. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY6i3hAAoJEDaBgBkK+INbppYQAJDX2oqvaDPdf8LXBf/JoO1U WCCLPr53nr2784bpN/34e2KFL/OO+fbBC+eZtuAKziuFRQHzioIutmzOdeqMFJ2x kHHA2POe1WPGNNpJKObG/9EPkec5EV1aiowgWhBUteshb3mpxaJuZAOFMHMiM0k/ xeYdN9rzSiRO/nSeiU7bNgA80+g0ySoEma/vuh8+kUC745rRPdCnv/K4AxJAau6Y aqmrAtJaQhp6i2O0gA4eHUAB9RN97mGv36S5q+Jhw06pF/hTVp2h5jhJEDee6WMv mXhR64SzeZKYpSRa1Mt93Web2cu3Pr44al2Bv86P5IiTrNqP1JNYhQTUAhn873nr ZgJgB+NbZB5Ga6CXghUsHiyLvMM8FQ/PE1RKMge0sUCAasQAp8sjPmKqQO5XIOzc 3blOKzvajXVQp1kaUz011asy8T4rA/3qMaXbB7IOl9oFH1g22/jqFcQHlDs9HEH0 hmPM5rA1jV/MhaPY6IPKB+fa3ttrb1JOE10bEss3ItV2/Pqr0FS/lv+0l9Fm+0+k bA9p716ru7UuyUvC//lfkjJL2kOx27baOdS5XvjRSgzus1yR5IjaY2fFth/PBlLA pZ06c9Pc/8BPGALhpXUKgv4iyrVKE11JC2mM/8RVQmS6tm18vTnuYWaT4QWyUNPz hpI87W2oj3r40S6HwV/d =8QlJ -----END PGP SIGNATURE----- --=-=-=--