Subject: Re: Global-set-key

From: Ulrich Beyer <[email-masked]>
Date: Mon, 2 Sep 1996 12:13:32 +0200

Hi,

A good way to carry out a global-set-key for a key whose symbol you don't
know is this:

* First perform the key assignment via M-x global-set-key <press key> <type
command name>
* Next do M-x repeat-complex-command (or C-x ESC ESC on my system)
* browse through the sequence of the last complex commands with C-p/C-n
until you find the global-set-key command. It should look like this:
	(global-set-key (quote [up]) (quote previous-line-nomark))
You may change things lile (quote [up]) to '[up] if you like.
* Move the whole command from the mini-buffer to the kill buffer (C-a C-k)
* Abort the repeat-complex-command with C-g
* Edit your .emacs file and insert the command at a proper place with C-y.

This works even on different emacsen (XEmacs) under different operating
systems.

Regards
=uli=

----------
> From: Howard B. Reubenstein <[email-masked]>
> To: 'ntemacs-users' <[email-masked]>
> Cc: [email-masked]
> Subject: Global-set-key
> Date: Freitag, 30. August 1996 20:24
> 
> Hi,
> 
> How can I find the proper syntax for doing a global-set-key to assign
> functionality to up and down arrow keys (running under Windows 95 on a HP
> Vectra)?  C-hc calls the keys "down" and "up" but I cannot figure out how
to
> pass that to global-set-key?  Thanks.
> 
> Cheers,
> Howard
> 
> [email-masked]
>