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

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

Re: keybinding help


From: Tassilo Horn
Subject: Re: keybinding help
Date: Mon, 15 May 2006 21:12:16 +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!'.

I assume you want that in LaTeX-mode, right? Then put something like
that into your ~/.emacs.

,----[ tested and worksforme ]
| (add-hook 'TeX-mode-hook
|           (lambda ()
|             (local-set-key (kbd "C-c l")
|                            (lambda ()
|                              (interactive)
|                              (insert "\\lstinline")))))
| 
| 
`----

Bye,
Tassilo
-- 
The problem with the French is that they dont have a word for
"entrepreneur".                              - George W. Bush


reply via email to

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