From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Extending the concept of pretty-greek with icons/images Date: Fri, 05 Oct 2007 15:39:18 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <1188991813.125435.171000@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1191591650 29903 80.91.229.12 (5 Oct 2007 13:40:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 13:40:50 +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 Oct 05 15:40:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdnPt-0007UE-LO for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 15:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdnPp-0003y6-0f for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 09:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: remote4.student.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1191591558 10959 129.16.29.77 (5 Oct 2007 13:39:18 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Fri, 5 Oct 2007 13:39:18 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:PFEblpkgm9XYabLWBPxZPRtW6Hs= Original-Xref: shelby.stanford.edu gnu.emacs.help:152627 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:48135 Archived-At: Nordlöw writes: > Wanting to try out my idea I thought I could start simple by > overlay/change all the gtk_ prefix with a miniturized version of the > GTK's main icon seen www.gtk.org > (http://www.gtk.org/images/gtk-logo-rgb.gif). Is this possible to do > easily in Emacs or do I have to change the internals (C code) of > Emacs? Something like (defun pretty-icons () (add-to-list 'char-property-alias-alist '(display pretty)) (add-to-list 'font-lock-extra-managed-props 'pretty) (font-lock-add-keywords nil `(("\\_<\\(foo\\)-" (1 '(face nil pretty ,(create-image "lock.xpm"))))))) http://i23.tinypic.com/2l93yuu.png -- Johan Bockgård