* Hello,how can i use the comma and dot in the config file .emacs
@ 2012-02-22 7:56 robby lee
2012-02-22 8:28 ` Jambunathan K
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: robby lee @ 2012-02-22 7:56 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
Hi!
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"
Thx
[-- Attachment #2: Type: text/html, Size: 396 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hello,how can i use the comma and dot in the config file .emacs
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
2012-02-22 13:23 ` Memnon Anon
2 siblings, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2012-02-22 8:28 UTC (permalink / raw)
To: robby lee; +Cc: help-gnu-emacs
robby lee <justfan.b@gmail.com> writes:
> (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"
(global-set-key [?\C-.] 'end-of-buffer)
(global-set-key [?\C-,] 'beginning-of-buffer)
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hello,how can i use the comma and dot in the config file .emacs
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
2012-02-22 13:23 ` Memnon Anon
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2012-02-22 9:55 UTC (permalink / raw)
To: robby lee; +Cc: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hello,how can i use the comma and dot in the config file .emacs
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
@ 2012-02-22 13:23 ` Memnon Anon
2 siblings, 0 replies; 4+ messages in thread
From: Memnon Anon @ 2012-02-22 13:23 UTC (permalink / raw)
To: help-gnu-emacs
robby lee <justfan.b@gmail.com> writes:
> (global-set-key "\C-\." 'end-of-buffer)
> (global-set-key "\C-\," 'beginning-of-buffer)
>
> the Ctrl-, and Ctrl-. but it doesn't work.
,----[ (info "(emacs)Init Rebinding") ]
| The simplest is to use the `kbd' macro,
`----
(global-set-key (kbd "C-.") 'my-function)
hth
Memnon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-22 13:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-02-22 13:23 ` Memnon Anon
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.