all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-. keybinding in (X)Emacs
@ 2003-06-16 12:25 Yan Tang
  0 siblings, 0 replies; 4+ messages in thread
From: Yan Tang @ 2003-06-16 12:25 UTC (permalink / raw)


Hi, I want to bind `C-.' to some func in (X)Emacs, but I don't know how to define the key.
(global-set-key "\C-." *****) doestn't work.

And in XEmacs, (global-set-key '(control period) *****) doesn't work either.

(global-set-key "\M-." *****) works well, but I have reserved it for etags.

So how to define C-. keybinding?

Thanks in advance!        
 				

        Yan Tang
        ty@net.cs.pku.edu.cn
          2003-06-16

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-. keybinding in (X)Emacs
       [not found] <mailman.7970.1055766422.21513.help-gnu-emacs@gnu.org>
@ 2003-06-16 13:18 ` Kai Großjohann
  2003-06-16 13:30 ` Andreas Büsching
  2003-06-16 14:02 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2003-06-16 13:18 UTC (permalink / raw)


"Yan Tang" <ty@net.cs.pku.edu.cn> writes:

> (global-set-key "\C-." *****) doestn't work.

C-. is not an ascii character (though . is).  Try

(global-set-key (kbd "C-.") 'forward-char)

-- 
This line is not blank.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-. keybinding in (X)Emacs
       [not found] <mailman.7970.1055766422.21513.help-gnu-emacs@gnu.org>
  2003-06-16 13:18 ` C-. keybinding in (X)Emacs Kai Großjohann
@ 2003-06-16 13:30 ` Andreas Büsching
  2003-06-16 14:02 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Büsching @ 2003-06-16 13:30 UTC (permalink / raw)


Hi,

"Yan Tang" <ty@net.cs.pku.edu.cn> wrote:

> Hi, I want to bind `C-.' to some func in (X)Emacs, but I don't know how to define the key.
> (global-set-key "\C-." *****) doestn't work.
>
> And in XEmacs, (global-set-key '(control period) *****) doesn't work either.
>
> (global-set-key "\M-." *****) works well, but I have reserved it for etags.
>
> So how to define C-. keybinding?

This should work for Emacs, but I'm not sure what about XEmacs:

(global-set-key (kbd "C-.") *****)

crunchy

-- 
If builders built buildings the way programmers wrote programs,
then the first woodpecker to come along would destroy civilization.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-. keybinding in (X)Emacs
       [not found] <mailman.7970.1055766422.21513.help-gnu-emacs@gnu.org>
  2003-06-16 13:18 ` C-. keybinding in (X)Emacs Kai Großjohann
  2003-06-16 13:30 ` Andreas Büsching
@ 2003-06-16 14:02 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2003-06-16 14:02 UTC (permalink / raw)


>>>>> "Yan" == Yan Tang <ty@net.cs.pku.edu.cn> writes:
> (global-set-key "\C-." *****) doestn't work.
(global-set-key [?\C-.] *****) should work.
And so should (global-set-key [(control ?.)] *****).


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-16 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7970.1055766422.21513.help-gnu-emacs@gnu.org>
2003-06-16 13:18 ` C-. keybinding in (X)Emacs Kai Großjohann
2003-06-16 13:30 ` Andreas Büsching
2003-06-16 14:02 ` Stefan Monnier
2003-06-16 12:25 Yan Tang

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.