From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.help Subject: Re: Writing source code with Unicode characters Date: Fri, 07 Feb 2014 01:32:02 +0100 Message-ID: <52F42982.6010703@miszellen.de> References: <87zjm4qeqi.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1391738556 7184 80.91.229.3 (7 Feb 2014 02:02:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 02:02:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 03:02:45 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 1WBamC-0003TO-CP for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 03:02:44 +0100 Original-Received: from localhost ([::1]:39073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBamB-0004wp-Hu for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 21:02:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBalw-0004wY-LX for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 21:02:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBalq-0006yu-Rs for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 21:02:28 -0500 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::3]:40744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBalq-0006xo-DD for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 21:02:22 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1391738540; l=877; s=domk; d=streitblatt.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=Cpd8l4LCn23fD4RZrCfxuCCrmGE=; b=KNGwZy78Q/EoYG5M2VsD47XFedB2jC2hjkSS5EIi5HMLWunustLKHZcrDuWX+5ajeDF MKSGuaSd+iWrbCgFGi/XZm+0YdHM2hr5Zs0CQjPm9PRP8LgAx04G5nA85EOq2YqsnB1d8 9jcJ/b3K86gMA9IgHn2VT0y9lYUbxqKZbAI= X-RZG-AUTH: :KmALZ0mpdbGonPxw7gDkop508XQjelhLxGYn4B74/iddlkME3ssvHN/NWXydtg+1ZCiA0J8WRno= X-RZG-CLASS-ID: mo00 Original-Received: from [77.24.201.255] (ip-77-24-201-255.web.vodafone.de [77.24.201.255]) by smtp.strato.de (RZmta 32.24 DYNA|AUTH) with ESMTPSA id f063feq170W5A4n (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Fri, 7 Feb 2014 01:32:05 +0100 (CET) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <87zjm4qeqi.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:238:20a:202:5300::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:95955 Archived-At: On 06.02.2014 19:26, Óscar Fuentes wrote: > 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 How about abbrev-mode? It's convenient and works on the fly. Whenever I find something tedious to type, I make an abbreviation (C-x a g) for it. Then I have this in my .emacs: ;; allow § in abbrevs (modify-syntax-entry ?§ "w" text-mode-syntax-table) (modify-syntax-entry ?§ "w" prog-mode-syntax-table) ;; save and load abbrevs (quietly-read-abbrev-file) (add-hook 'kill-emacs-hook 'write-abbrev-file) ;; activate (add-hook 'org-mode-hook 'abbrev-mode) (add-hook 'emacs-lisp-mode-hook 'abbrev-mode) I never use §, so I can use it here. E.g. §l -> λ. Abbrev mode also takes care of case, so you get the upper case Λ for free. -- Florian Beck