[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extending the concept of pretty-greek with icons/images
From: |
Nordlöw |
Subject: |
Re: Extending the concept of pretty-greek with icons/images |
Date: |
Tue, 09 Oct 2007 01:55:12 -0700 |
User-agent: |
G2/1.0 |
On 5 Okt, 15:39, bojohan+n...@dd.chalmers.se (Johan Bockgård) wrote:
> Nordlöw <per.nord...@gmail.com> 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 seenwww.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
Superb, I'll try it!
Thanks,
Nordlöw