all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Extending the concept of pretty-greek with icons/images
Date: Fri, 05 Oct 2007 15:39:18 +0200	[thread overview]
Message-ID: <yoijzlyxwuih.fsf@remote4.student.chalmers.se> (raw)
In-Reply-To: 1188991813.125435.171000@g4g2000hsf.googlegroups.com

Nordlöw <per.nordlow@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 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

  reply	other threads:[~2007-10-05 13:39 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 [this message]
2007-10-09  8:55   ` Nordlöw

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=yoijzlyxwuih.fsf@remote4.student.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --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.