From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: can emacs do this Date: Fri, 16 Jan 2015 10:41:01 +1100 Message-ID: <87a91j629e.fsf@gmail.com> References: <9fcff97c-a183-41f1-a5cc-5b0cd94e2674@googlegroups.com> 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 1421365294 26202 80.91.229.3 (15 Jan 2015 23:41:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 23:41:34 +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 Jan 16 00:41:34 2015 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 1YBu2f-0007w8-Ef for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2015 00:41:33 +0100 Original-Received: from localhost ([::1]:53328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBu2e-00014w-Mv for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 18:41:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBu2N-0000wu-UT for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 18:41:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBu2H-00079Y-BE for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 18:41:15 -0500 Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:45055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBu2H-00079Q-4Z for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 18:41:09 -0500 Original-Received: by mail-pd0-f181.google.com with SMTP id z10so7615447pdj.12 for ; Thu, 15 Jan 2015 15:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type:content-transfer-encoding; bh=oRLij6zlw4pSs4F40OB1EsnCzNQFY2Zr1nxS+fEl3Ko=; b=f9FynojIIoPMKCYrU2XwANkY5R3kf453rhEWL6FOTB9eU03H/c/tG8+jHlhusq5mMt XB9KHo+LyzlKpU3cNpIRAB7f+xMGlYAw3wJek3bQGgDRD2QzF9EBX1PlbTjnddomxM0C bvPlXQRZpuu4UFhtbyHAEmfrsKOC3W6FR+ftsvcoPp1axE1Lal9MrFQ2V5Dx+nOyiaKc MBVQ/XGfOfZup5CsTRy6w6JR9fcZkdDbJgUcwGBNtOWe1nPkNFm8k/anrQRqaVErNnhI 68l7H2WqDbD6suoyjFfjTDVHZ1OqRqtb5RJqw2ItsGQWgQLkRnCQ8m6dh5v3P06mDGig hQFA== X-Received: by 10.66.181.136 with SMTP id dw8mr18123075pac.117.1421365268127; Thu, 15 Jan 2015 15:41:08 -0800 (PST) Original-Received: from localhost (ppp118-209-63-224.lns20.mel4.internode.on.net. [118.209.63.224]) by mx.google.com with ESMTPSA id gw8sm2388105pbc.48.2015.01.15.15.41.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Jan 2015 15:41:07 -0800 (PST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::235 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:102109 Archived-At: Dan Espen writes: > Rusi writes: > >> On Thursday, January 15, 2015 at 7:53:14 PM UTC+5:30, Stefan Monnier wrote: >>> > What facilities of emacs can be used for this? >>> >>> The standard facility for that in recent Emacsen is >>> `prettify-symbols-mode', which you can set up with something like >>> >>> (add-hook 'python-mode-hook >>> (lambda () >>> (setq-local prettify-symbols-alist >>> '(("lambda" . ?λ) >>> ("math.sqrt" . ?√) >>> ("math.pi" . ?π) >>> ("sum" . ?Σ))) >>> (prettify-symbols-mode 1))) >> >> >> Doesn't work in 24.3.1 does it? > > Looks like 24.4: > > http://emacsredux.com/blog/2014/08/25/a-peek-at-emacs-24-dot-4-prettify-symbols-mode/ Perhaps the `pretty-symbols` package, available from MELPA, might work for those using Emacs < 24.4? http://github.com/drothlis/pretty-symbols Alexis.