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