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

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

Re: keybinding help


From: Michaël Cadilhac
Subject: Re: keybinding help
Date: Mon, 15 May 2006 20:51:51 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

"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 --'                                   -  --'

Attachment: pgpm3V7i1odOG.pgp
Description: PGP signature


reply via email to

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