From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: insert unicode Date: Fri, 06 Jan 2006 02:11:14 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: <6lkvf.2777$ZA2.719@newsread1.news.atl.earthlink.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 1136513611 28392 80.91.229.2 (6 Jan 2006 02:13:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2006 02:13:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 03:13:30 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 1Euh6e-0004R3-3R for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jan 2006 03:13:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Euh8O-0007yn-QO for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jan 2006 21:15:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.17.218 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.news.atl.earthlink.net 1136513474 4.159.17.218 (Thu, 05 Jan 2006 18:11:14 PST) Original-NNTP-Posting-Date: Thu, 05 Jan 2006 18:11:14 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:136857 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:32476 Archived-At: "Emabela" wrote in message news:mailman.0.1136491361.26925.help-gnu-emacs@gnu.org... Hello Everybody, I know that this is the simplest question, but I could not find the answer. So any help would be greatly appreciated. How can I map a key to insert a unicode character (say, U+XYZW)? (define-key global-map "\M-a" ?????") Thanks. Regards, B. M-a is already bound to 'backward-sentence but anyway this might work: (global-set-key "\M-a" (lambda () (interactive) (insert ?ઔ))) I have 21.3 and I do it this way: e.g. U+0A94 (some Gujarati glyph - letter AU). Download the free (for non commercial use) Babelmap, find your character and then copy it into Emacs, insert it after the question mark in the above statement (in *scratch*), evaluate, test, and then put it in your .emacs if you want to keep it: ઔ Ed