From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: How to do a Ctl-Grave key binding? Date: Sat, 16 Mar 2013 20:29:35 -0500 Organization: NewsGuy - Unlimited Usenet $23.95 Message-ID: References: <59f2e864-07c2-4113-beaa-c9a8ba665fde@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363551757 2993 80.91.229.3 (17 Mar 2013 20:22:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Mar 2013 20:22:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 17 21:23:02 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UHK6f-000620-BL for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 21:23:01 +0100 Original-Received: from localhost ([::1]:41854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHK6I-0005sa-Ba for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 16:22:38 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news6 Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: p0d50aefd55df2670ee18beaef3bdb088e5e468e5e289a952.newsdawg.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <59f2e864-07c2-4113-beaa-c9a8ba665fde@googlegroups.com> X-Received-Bytes: 1579 Original-Xref: usenet.stanford.edu gnu.emacs.help:197280 X-Mailman-Approved-At: Sun, 17 Mar 2013 16:22:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89560 Archived-At: > 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