From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Danny YUE Newsgroups: gmane.emacs.help Subject: Re: Simple keybinding request Date: Sun, 09 Apr 2017 18:22:04 +0800 Message-ID: <87inmdyj77.fsf@gmail.com> References: <87d1clhp69.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491733450 29808 195.159.176.226 (9 Apr 2017 10:24:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2017 10:24:10 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 Cc: help-emacs To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 09 12:24:05 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 1cxA0l-0006II-BO for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 12:23:59 +0200 Original-Received: from localhost ([::1]:57972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxA0o-0008AI-6K for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 06:24:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxA0H-0008AC-F7 for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 06:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxA0E-00016s-63 for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 06:23:29 -0400 Original-Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:34826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxA0D-00016e-Vp for help-gnu-emacs@gnu.org; Sun, 09 Apr 2017 06:23:26 -0400 Original-Received: by mail-pf0-x241.google.com with SMTP id n11so5783003pfg.2 for ; Sun, 09 Apr 2017 03:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=5TKY0w9+sisScwbUcVQgN+mJw8bw6nfforByWBWFTZI=; b=Qw2rpv8cw1cg6rYYjRix2XRHSiSvCqgrn//26SZpFjZl0qocYJk58N+ZsDCC3ZeZ89 Gg8R1i1R1e2OA7GtdRRwRv76KsaCHaht4Q7oZi3O70+kvpdW/AW/Br7fGG6I5mDto44N LHdj2YCxn0W/lbLIn/faOoXOD2G55ixVYHvsJpgAl35KWUyiApJH3iMTW77S8eA2Vwej 0XxyZa8jyZ90rxwjDzX/4Qda0URQv1lshiPDQKWlT/pmXsuRgSeQ0rCh32Vh25irpD5x Vms3njFLoSJXcolWJS4JPE1NsB6aH8WAet+uvavEoD7novc6yhheOaW/NLqvx2cEttHm AFrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=5TKY0w9+sisScwbUcVQgN+mJw8bw6nfforByWBWFTZI=; b=U3Oz50pGgYS2gQJ/kBQt7MaAyS3oGO3gg7P1z5Cw3TEB1a2LNlGkfd/xubjxaq95W6 bEYqOFLISAzxmSyAA8L5QDq6gskJ3MzUhk1W4WUiRL8baubvqpU6qcisEuKm2hIfb56J pSUapAi+lcO9ejBr/e8mCO8SpMu9KbEJ31M3S0VvsqDoYVPz5DfhKxvxl2AcAeO0YvlB uNq6sYDSFwt7mMbxxaaWb7xal26XyZJ/nXeg4gNOojZdksleHFb2wIRwZUe+QdO1p6Hc 6Rx1HG40NUmUQMGeHiZ2p/LySMESj561NYSKotJe6jPUOgMcRrWUI0NnvKfqYqtvHHl8 2NRQ== X-Gm-Message-State: AFeK/H2KVsKcaoqMRFl5Fkj863y2syB7aokmd5XdJ7i+dbW0JT5Cjggl2P7Mn+k1m9WCTQ== X-Received: by 10.84.239.8 with SMTP id w8mr60615037plk.73.1491733404791; Sun, 09 Apr 2017 03:23:24 -0700 (PDT) Original-Received: from localhost (23.83.238.120.16clouds.com. [23.83.238.120]) by smtp.gmail.com with ESMTPSA id r67sm18612131pfb.125.2017.04.09.03.23.23 (version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 09 Apr 2017 03:23:23 -0700 (PDT) In-reply-to: <87d1clhp69.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::241 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:112728 Archived-At: On 2017-04-09 10:05, Sharon Kimble wrote: > How can I bind '' to some keys to make it easier to enter > 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. > > Thanks > Sharon. Try below whiling editing your new yasnippet item: # -*- mode: snippet -*- # name: ref # key: ref # -- The snippet above binds the snippet to "ref" key. '$0' makes the cursor move there after expansion completed. Good luck. Danny