From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to do a Ctl-Grave key binding?
Date: Sat, 16 Mar 2013 20:29:35 -0500 [thread overview]
Message-ID: <ki369a02j24@news6.newsguy.com> (raw)
In-Reply-To: <59f2e864-07c2-4113-beaa-c9a8ba665fde@googlegroups.com>
> Hi, I want to do a Ctl-Grave key binding. Just to be clear, grave, AKA backtick, is the key below ~ (tilde) on most PC keyboards.
>
> Hi, I've tried several variations of the last line from my .EMACS startup below but cannot get it to compile. (I think once I did have a syntax that would compile but then if I actually tried to use the sequence it would not respond.)
>
> Does anyone know a sequence that will work?
>
> I am using GNU EMACS 23.2.1 (i386-mingw-nt6.1.7601).
>
> (global-set-key [C-tab] 'my-own-specialized-indent)
> (global-set-key [C-`] 'my-own-specialized-outdent)
>
I could evaluate this form:
(global-set-key [(control \`)] (lambda () (interactive) (insert "hello" )))
so I think you could substitute your function for the lambda.
Ed
next prev parent reply other threads:[~2013-03-17 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 12:17 How to do a Ctl-Grave key binding? zeb7k
2013-03-17 1:29 ` B. T. Raven [this message]
2013-03-17 2:26 ` Drew Adams
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=ki369a02j24@news6.newsguy.com \
--to=btraven@nihilo.net \
--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).