From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: insert unicode Date: Tue, 28 Mar 2006 14:41:40 +0200 Organization: Arcor Message-ID: <44292f38$0$7760$9b4e6d93@newsread4.arcor-online.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1143553236 7199 80.91.229.2 (28 Mar 2006 13:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 13:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 28 15:40:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOEQw-00037X-3Q for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Mar 2006 15:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOEQv-00088i-9g for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Mar 2006 08:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 24 Original-NNTP-Posting-Date: 28 Mar 2006 14:42:32 MEST Original-NNTP-Posting-Host: f47d006d.newsread4.arcor-online.net Original-X-Trace: DXC=bBddOb50J; 7MXCiXZcgNO?:ejgIfPPld4jW\KbG]kaM8eDdmR4DE3R List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34052 Archived-At: "Emabela" writes: [...] > How can I map a key to insert a unicode character > > (say, U+XYZW)? > > > > (define-key global-map "\M-a" ?????") In Emacs 22: (defun my-insert-ucs (hex) (interactive "sHexadecimal code: ") (ucs-insert hex)) (define-key global-map [?\C-c ?u] #'my-insert-ucs) Oliver -- 8 Germinal an 214 de la Révolution Liberté, Egalité, Fraternité!