unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Binding C-'
@ 2008-10-14 23:21 TongKe Xue
  2008-10-15 10:22 ` Peter Dyballa
  2008-10-15 15:03 ` Lennart Borgman (gmail)
  0 siblings, 2 replies; 4+ messages in thread
From: TongKe Xue @ 2008-10-14 23:21 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

I can bind vip-mode to C-z with:(global-set-key "\C-z" ...)

However, I can't find C-' with

(global-set-key "\C-'" ...)
or
(global-set-key "\C-\'" ...)

How do I do this?

[-- Attachment #2: Type: text/html, Size: 410 bytes --]

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

* Re: Binding C-'
  2008-10-14 23:21 Binding C-' TongKe Xue
@ 2008-10-15 10:22 ` Peter Dyballa
  2008-10-15 15:03 ` Lennart Borgman (gmail)
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-10-15 10:22 UTC (permalink / raw)
  To: TongKe Xue; +Cc: help-gnu-emacs


Am 15.10.2008 um 01:21 schrieb TongKe Xue:

> I can't find C-' with
>
> (global-set-key "\C-'" ...)
> or
> (global-set-key "\C-\'" ...)
>
> How do I do this?


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

C-' is not ANSI, i.e., it does not address an ASCII command  
character. Could be therefore you need kind of a "translator" via the  
kbd function.


It also works to set this key binding manually and then to recall the  
complete command: C-x Esc Esc C-a C-k C-g C-x b .emacs RET C-y C-x C- 
s ...

--
Greetings

   Pete

Either this man is dead or my watch has stopped.
				- Groucho Marx







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

* Re: Binding C-'
       [not found] <mailman.1079.1224042119.25473.help-gnu-emacs@gnu.org>
@ 2008-10-15 10:52 ` Michael Heerdegen
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2008-10-15 10:52 UTC (permalink / raw)
  To: help-gnu-emacs

"TongKe Xue" <tongkecantcode@gmail.com> writes:

> I can bind vip-mode to C-z with:
> (global-set-key "\C-z" ...)
>
> However, I can't find C-' with
>
> (global-set-key "\C-'" ...)
> or
> (global-set-key "\C-\'" ...)
>
> How do I do this?

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

or

(global-set-key [?\C-'] ...)

should work.


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

* Re: Binding C-'
  2008-10-14 23:21 Binding C-' TongKe Xue
  2008-10-15 10:22 ` Peter Dyballa
@ 2008-10-15 15:03 ` Lennart Borgman (gmail)
  1 sibling, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-10-15 15:03 UTC (permalink / raw)
  To: TongKe Xue; +Cc: help-gnu-emacs

TongKe Xue wrote:
> I can bind vip-mode to C-z with:
> (global-set-key "\C-z" ...)
> 
> However, I can't find C-' with
> 
> (global-set-key "\C-'" ...)
> or
> (global-set-key "\C-\'" ...)
> 
> How do I do this?

Hi TongKe

I have seen that you have got some answers to your questions. However I
wonder why you use vip-mode. Why don't you use viper-mode? Do you know
the differences?




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

end of thread, other threads:[~2008-10-15 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 23:21 Binding C-' TongKe Xue
2008-10-15 10:22 ` Peter Dyballa
2008-10-15 15:03 ` Lennart Borgman (gmail)
     [not found] <mailman.1079.1224042119.25473.help-gnu-emacs@gnu.org>
2008-10-15 10:52 ` Michael Heerdegen

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).