help-gnu-emacs
[Top][All Lists]
Advanced

[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, address@hidden (Johan Bockgård) wrote:
> Nordlöw <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]