help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keybinding help


From: Ryan Krauss
Subject: Re: keybinding help
Date: Mon, 15 May 2006 14:59:26 -0400

It does work.  Thank you.

Ryan

On 5/15/06, Michaël Cadilhac <michael.cadilhac@lrde.org> wrote:
"Ryan Krauss" <ryanlists@gmail.com> 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ël `Micha' Cadilhac   |   La culture c'est comme la confiture  |
 |         Epita/LRDE Promo 2007   |       c'est meilleur avec du pain.     |
 | http://www.lrde.org/~cadilh_m   |            -- MOI59                    |
 `--  -   JID: micha@amessage.be --'                                   -  --'







reply via email to

[Prev in Thread] Current Thread [Next in Thread]