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

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

Re: creating a sub-menu


From: ken
Subject: Re: creating a sub-menu
Date: Wed, 06 Mar 2013 06:44:05 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130219 Thunderbird/17.0.3

n 03/05/2013 08:42 PM Joost Kremers wrote:
ken wrote:
Trying to create a sub-menu under "Edit".  Got part of the way there,
but still missing something.

(define-key menu-bar-edit-menu [insert-xascii-chars]
    '(menu-item "Insert non-ASCII characters" xascii

     (xascii  "\C-xaa"   "ä"        "ä` (ä)"          ("ä"))
     (xascii  "\C-xaA"   "Ä"        "Ä` (Ä)"          ("Ä"))
     (xascii  "\C-xao"   "ö"        "ö` (ö)"          ("ö"))
     (xascii  "\C-xaO"   "Ö"        "Ö` (Ö)"          ("Ö"))
     (xascii  "\C-xau"   "ü"        "ü` (ü)"          ("ü"))
     (xascii  "\C-xaU"   "Ü"        "Ü` (Ü)"          ("Ü"))
     (xascii  "\C-xas"   "ß"        "ß` (ß)"          ("ß"))
     (xascii  "\C-xa<"   "«"        "«` («)"          ("«"))
     (xascii  "\C-xa>"   "»"        "»` (»)"          ("»"))))

Above yields error:
Debugger entered--Lisp error: (wrong-type-argument arrayp xascii)

dunno about the error, but if all you want is to easily type German, why
don't you use an input method? `M-x set-input-method latin9-prefix RET'
and you can type "a to get ä, ~s to get ß, ~< to get «, etc.

(info "(emacs) Input Methods") for details.

HTH

Thanks for your response, Joost. But I already have an easier way than that to change the input method, one which takes just two mouse clicks... and then another two mouse clicks to return to my normal input method. But I want a way so that all I need do is "C-xaa" to get 'ä'-- so I can type this and other characters without breaking the flow of my typing. I want these listed in the menu also because I might not remember all the key combos for all the characters. (I'll likely add more in future.)





reply via email to

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