all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* global-set-key with altGr on PC
@ 2003-10-14 12:28 Sébastien Kirche
  0 siblings, 0 replies; 5+ messages in thread
From: Sébastien Kirche @ 2003-10-14 12:28 UTC (permalink / raw)


Hi all,

to resolve the insertion of the euro symbol i have defined the 
following in my .emacs :
,----
| (defun insert-euro () "Insert Euro sign"
|   (interactive)
|   (insert (make-char 'latin-iso8859-15 164))
| )
| (defun insert-euro-unicode () "Insert Unicode Euro"
|   (interactive)
|   (insert (make-char 'mule-unicode-0100-24ff 116 76))
| )
`----

To help for easy typing, i have added that (for PC):
,----
|(global-set-key [128] 'insert-euro); C-h l gives \200 for euro 
(AltGr-e) = 128 dec
`----
This works fine.
But then i tried to add another key like C-u AltGr-e for 
insert-euro-unicode,
,----
| (global-set-key (concat "\C-u" [128]) 'insert-euro)
| or
| (global-set-key "\C-u\200 'insert-euro) ; \200 is C-q AltGr-e
`----
but it fails with the following:
error: Key sequence C-u C-M-@ uses invalid prefix characters

How can I define a global-set-key with C-u Altgr-e ?

Thanks for help.
Sébastien Kirche

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.1662.1066134615.21628.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-10-14 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-14 12:28 global-set-key with altGr on PC Sébastien Kirche
     [not found] <mailman.1662.1066134615.21628.help-gnu-emacs@gnu.org>
2003-10-14 15:30 ` Kevin Rodgers
2003-10-14 15:51   ` Sébastien Kirche
2003-10-14 16:35     ` Sébastien Kirche
2003-10-14 17:01   ` Kevin Rodgers

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.