unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Binding key to command
  2009-07-29 19:32 Binding key to command Rodolfo Medina
@ 2009-07-29 18:52 ` Tassilo Horn
  2009-07-29 20:11   ` [solved] " Rodolfo Medina
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2009-07-29 18:52 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

Hi Rodolfo,

> I wish to use the key combinations `C-,' and `C-;' for a certain
> command, but Emacs does not seem to accept the expression
>
>  global-set-key "\C-,"
>
> What should I put instead of that in ~/.emacs?

(global-set-key (kbd "C-,") 'rodolfos-favourite-command)

Bye,
Tassilo





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

* Binding key to command
@ 2009-07-29 19:32 Rodolfo Medina
  2009-07-29 18:52 ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Rodolfo Medina @ 2009-07-29 19:32 UTC (permalink / raw)
  To: help-gnu-emacs

I wish to use the key combinations `C-,' and `C-;' for a certain command, but
Emacs does not seem to accept the expression

 global-set-key "\C-,"

What should I put instead of that in ~/.emacs?

Thanks for any help
Rodolfo





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

* [solved] Re: Binding key to command
  2009-07-29 18:52 ` Tassilo Horn
@ 2009-07-29 20:11   ` Rodolfo Medina
  0 siblings, 0 replies; 3+ messages in thread
From: Rodolfo Medina @ 2009-07-29 20:11 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

>> I wish to use the key combinations `C-,' and `C-;' for a certain
>> command, but Emacs does not seem to accept the expression
>>
>>  global-set-key "\C-,"
>>
>> What should I put instead of that in ~/.emacs?



Tassilo Horn <tassilo@member.fsf.org> writes:

> (global-set-key (kbd "C-,") 'rodolfos-favourite-command)



Nathaniel Flath <flat0103@gmail.com> writes:

> Try (global-set-key (kbd "C-;) and (global-set-key (kbd "C-,")


Thanks!  This seems to work fine
Rodolfo





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

end of thread, other threads:[~2009-07-29 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 19:32 Binding key to command Rodolfo Medina
2009-07-29 18:52 ` Tassilo Horn
2009-07-29 20:11   ` [solved] " Rodolfo Medina

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