From: michael.cadilhac@lrde.org (Michaël Cadilhac)
Cc: help-gnu-emacs@gnu.org
Subject: Re: keybinding help
Date: Mon, 15 May 2006 20:51:51 +0200 [thread overview]
Message-ID: <87iro7jf3s.fsf@lrde.org> (raw)
In-Reply-To: <c5b438120605151146q242a3d3rccc0afc901784ba5@mail.gmail.com> (Ryan Krauss's message of "Mon, 15 May 2006 14:46:06 -0400")
[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]
"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 #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-05-15 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-15 18:46 keybinding help Ryan Krauss
2006-05-15 18:51 ` Michaël Cadilhac [this message]
2006-05-15 18:59 ` Ryan Krauss
[not found] <mailman.1844.1147718776.9609.help-gnu-emacs@gnu.org>
2006-05-15 19:12 ` Maarten Bergvelt
2006-05-15 21:34 ` Ryan Krauss
2006-05-15 23:39 ` Kevin Rodgers
2006-05-15 19:12 ` Tassilo Horn
2006-05-19 13:54 ` Mathias Dahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iro7jf3s.fsf@lrde.org \
--to=michael.cadilhac@lrde.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).