From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Extending the concept of pretty-greek with icons/images
Date: Tue, 09 Oct 2007 01:55:12 -0700 [thread overview]
Message-ID: <1191920112.326455.306810@v3g2000hsg.googlegroups.com> (raw)
In-Reply-To: <yoijzlyxwuih.fsf@remote4.student.chalmers.se>
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
prev parent reply other threads:[~2007-10-09 8:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 11:30 Extending the concept of pretty-greek with icons/images Nordlöw
2007-10-05 13:39 ` Johan Bockgård
2007-10-09 8:55 ` Nordlöw [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1191920112.326455.306810@v3g2000hsg.googlegroups.com \
--to=per.nordlow@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.