help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-set-key with altGr on PC


From: Sébastien Kirche
Subject: Re: global-set-key with altGr on PC
Date: Tue, 14 Oct 2003 17:51:15 +0200

                        
Le mardi, 14 oct 2003, à 17:30 Europe/Paris, Kevin Rodgers a écrit :


You have to modify the function bound to AltGr-e to behave differently

when it's called with a prefix arg (C-u):

(defun insert-euro (&optional arg)
  "Insert the ISO 8859-15 Euro symbol.
With a prefix arg, insert the corresponding Unicode character instead."
  (interactive)
  (if arg
      (insert (make-char 'mule-unicode-0100-24ff 116 76))
    (insert (make-char 'latin-iso8859-15 164))))

(global-set-key [128] 'insert-euro)     ; AltGr-e

--
Kevin Rodgers

Thanks Kevin,
That's *just* what i need :)

I still have to improve elisp.
Manual is ordered, i am just waiting for it to cross the see to France :)

Sébastien Kirche





reply via email to

[Prev in Thread] Current Thread [Next in Thread]