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: Kevin Rodgers
Subject: Re: global-set-key with altGr on PC
Date: Tue, 14 Oct 2003 11:01:49 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

I wrote:

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)


Oops: (interactive "*P")


  (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



reply via email to

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