From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Writing source code with Unicode characters Date: Thu, 06 Feb 2014 21:38:44 +0100 Message-ID: <87vbwsq8mj.fsf@wanadoo.es> References: <87zjm4qeqi.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1391719155 18439 80.91.229.3 (6 Feb 2014 20:39:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2014 20:39:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 06 21:39:21 2014 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 1WBVjF-0003ip-8g for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 21:39:21 +0100 Original-Received: from localhost ([::1]:38293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBVjE-0007NH-NS for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 15:39:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBViy-0007N9-6a for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 15:39:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBVir-0003Iz-QD for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 15:39:04 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBVir-0003Iv-JK for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 15:38:57 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WBVip-0003L1-Tt for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 21:38:55 +0100 Original-Received: from 199.red-83-46-212.dynamicip.rima-tde.net ([83.46.212.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Feb 2014 21:38:55 +0100 Original-Received: from ofv by 199.red-83-46-212.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Feb 2014 21:38:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 199.red-83-46-212.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:kB0A+KXGpu6MY+UdkYmxvg5wyM8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:95948 Archived-At: Óscar Fuentes writes: > I'll like to experiment with using Unicode on source code (λ instead of > lambda, etc) but it seems quite inconvenient to insert those chars with > C-x 8 RET. Org-mode has the capability of displaying λ when you type > \lambda, but that's just a display replacement, the raw text still is > \lambda. > > What can I use to make more convenient the insertion of Unicode chars? > (I'm mostly interested on Greek letters and other math-related symbols) Drew: Thanks but that's not quite the thing I'm looking for. It is good when you need to write a few unicode chars and wish to save a few keystrokes by not invoking C-x 8 RET , but not so convenient when you are interested on quickly typing unicode chars on a similar way you type ordinary text, which would require setting quite a few keybindings and it would not be an advantage over binding the key sequences to (insert-char ). Eli: That's very nice and something I'll would use if there is not something better. Göktuğ Kayaalp: That's the best approach so far, IMHO. Just before reading your responses, I discovered on the net a commercial Emacs package that does exactly that. As you demonstrated, the functionality is quite easy to implement. Instead of using just the two last chars, we can use (thing-at-point 'symbol) and then we can map (a -> \alpha), (and -> logical symbol and), etc Thanks so much to all.