From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: .emacs poser Date: Mon, 16 Dec 2013 18:46:47 -0800 (PST) Message-ID: <9bb4e5ef-c624-478f-bd9e-6d4872b0ab69@default> References: <20131216174811.208d86e6@zothique> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1387248434 21096 80.91.229.3 (17 Dec 2013 02:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 02:47:14 +0000 (UTC) To: ddsnell@frontier.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 17 03:47:20 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vskgo-0005eK-6l for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 03:47:18 +0100 Original-Received: from localhost ([::1]:59404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vskgn-0003Uh-MV for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Dec 2013 21:47:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VskgW-0003US-Av for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 21:47:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VskgO-0000QJ-C1 for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 21:47:00 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:37058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VskgO-0000QC-5M for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 21:46:52 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBH2kmc4025362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Dec 2013 02:46:49 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBH2kmMa013560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Dec 2013 02:46:48 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBH2kmZX017729; Tue, 17 Dec 2013 02:46:48 GMT In-Reply-To: <20131216174811.208d86e6@zothique> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95033 Archived-At: > In my emacs I have these global-set-key forms: > (global-set-key "\C-cg" (lambda () (interactive) (insert ?=C2=B0 ))) > (global-set-key "\C-ch" (lambda () (interactive) (insert ?=C2=B7))) An easy way to define commands that insert individual Unicode chars that you use often is to use library `ucs-cmds.el'. * Command `ucsc-insert' does the same as `insert-char': inserts a char you choose by its Unicode name (or hex code) using completion. But with a negative prefix arg it also defines a command with the same name. * Macro `ucs-make-commands' defines a whole set of such commands, based on a regexp that is matched against all Unicode char names. You can then bind the commands to keys. E.g.: C-- M-x ucsc-insert greek small letter lambda RET defines command `greek-small-letter-lambda', which inserts that character (or N such chars, where N is the prefix arg). Then: (global-set-key "\C-cl 'greek-small-letter-lambda). http://www.emacswiki.org/emacs-en/download/ucs-cmds.el http://www.emacswiki.org/emacs/UnicodeEncoding#ucsc-insert