unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: robby lee <justfan.b@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Hello,how can i use the comma and dot in the config file .emacs
Date: Wed, 22 Feb 2012 10:55:06 +0100	[thread overview]
Message-ID: <E0C0A2B8-EDE0-49B3-B6FD-8C18637EDB4C@Web.DE> (raw)
In-Reply-To: <CACQPF=Z04gY+BOz3ycFru-_2D6VEMCsWTqwx_fxniK_ZK8A+yw@mail.gmail.com>


Am 22.2.2012 um 08:56 schrieb robby lee:

> I want to change the key  as follow.
> 
> (global-set-key "\C-\." 'end-of-buffer)
> (global-set-key "\C-\," 'beginning-of-buffer)
> 
> the Ctrl-, and Ctrl-.
> but it doesn't work. how to escape the symbol "comma" and "dot"

Try to set them first manually! After you've done that for the first key binding perform:

	C-x ESC ESC

This will bring back the key binding command in echo-area/mini-buffer. By typing

	C-a C-k C-g

you put the key binding command into the kill-buffer (to be yanked with C-y), quit the action in mini-buffer, and can return to your init file. Here just C-y and you have the working key binding command.

Repeat for the next key! Save your init file!

--
Greetings

  Pete

My sister opened a computer store in Hawaii.  She sells C shells down by the seashore.




  parent reply	other threads:[~2012-02-22  9:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  7:56 Hello,how can i use the comma and dot in the config file .emacs robby lee
2012-02-22  8:28 ` Jambunathan K
2012-02-22  9:55 ` Peter Dyballa [this message]
2012-02-22 13:23 ` Memnon Anon

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=E0C0A2B8-EDE0-49B3-B6FD-8C18637EDB4C@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=justfan.b@gmail.com \
    /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).