From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ryan Krauss" Newsgroups: gmane.emacs.help Subject: Re: keybinding help Date: Mon, 15 May 2006 14:59:26 -0400 Message-ID: References: <87iro7jf3s.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1147719621 32390 80.91.229.2 (15 May 2006 19:00:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 May 2006 19:00:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 15 21:00:15 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfiIT-0005lo-5b for geh-help-gnu-emacs@m.gmane.org; Mon, 15 May 2006 21:00:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfiIS-0002k4-Pb for geh-help-gnu-emacs@m.gmane.org; Mon, 15 May 2006 15:00:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfiHx-0002Z8-1U for help-gnu-emacs@gnu.org; Mon, 15 May 2006 14:59:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfiHv-0002YQ-NA for help-gnu-emacs@gnu.org; Mon, 15 May 2006 14:59:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfiHv-0002YK-Is for help-gnu-emacs@gnu.org; Mon, 15 May 2006 14:59:27 -0400 Original-Received: from [64.233.166.177] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfiKO-0004o6-Dj for help-gnu-emacs@gnu.org; Mon, 15 May 2006 15:02:00 -0400 Original-Received: by py-out-1112.google.com with SMTP id d80so745533pyd for ; Mon, 15 May 2006 11:59:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PJZ4+//z3BqRGWl3SKj6y+apjN68Zu9BYNnwStTOsoVxiBrqIU69pAja/nhth0zJutw0s9MWL8ch3pBBUEC0IAGj9QAeuvmSvoA8+IsdWCX42PdVZ+be4ohMOm6QC0O6bd8v60oYZziibV3K0r2MVZ8lvXX4zG3Fq3WpjgENenY= Original-Received: by 10.35.112.3 with SMTP id p3mr2513855pym; Mon, 15 May 2006 11:59:26 -0700 (PDT) Original-Received: by 10.64.47.14 with HTTP; Mon, 15 May 2006 11:59:26 -0700 (PDT) Original-To: "=?ISO-8859-1?Q?Micha=EBl_Cadilhac?=" In-Reply-To: <87iro7jf3s.fsf@lrde.org> Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35054 Archived-At: It does work. Thank you. Ryan On 5/15/06, Micha=EBl Cadilhac wrote: > "Ryan Krauss" writes: > > > I know this is a simple question, but I can't seem to find the answer. > > I want to bind a key to insert some text that I am retyping a lot. > > How do I do that? I would like to bind C-c l to insert that text > > '\lstinline!'. > > The following (not tested) should work : > > (global-set-key "\C-cl" (lambda () (interactive) (insert "\\lstinline!"))= ) > > Regards, > > -- > | Micha=EBl `Micha' Cadilhac | La culture c'est comme la confit= ure | > | Epita/LRDE Promo 2007 | c'est meilleur avec du pain. = | > | http://www.lrde.org/~cadilh_m | -- MOI59 = | > `-- - JID: micha@amessage.be --' - = --' > > >