From: MaDhAt2r <micah@dukefoo.com>
To: notmuch@notmuchmail.org
Subject: Custom Tag Images
Date: Thu, 31 Jul 2014 19:30:28 -0500 [thread overview]
Message-ID: <87egx1kq57.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me> (raw)
Hello Everyone.
If this is not the place to address this issue, could you please
direct me to the proper forum.
Info: Using Emacs 24.3.1 on ArchLinux
I am interested in setting up custom image for some of the tags I use.
I have tried to use a svg file by setting it in the following ways:
(defun notmuch-tag-list-icon ()
"Return SVG data representing a list.
This can be used with `notmuch-tag-format-image-data'."
" <?xml version=\"1.0\" encoding=\"utf-8\"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">
<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">
<g id=\"icomoon-ignore\">
<line stroke-width=\"1\" x1=\"\" y1=\"\" x2=\"\" y2=\"\" stroke=\"#449FDB\" opacity=\"\"></line>
</g>
<path d=\"M4 10.4h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM4 7.2h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8
0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM4 4h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM7.2 5.6h5.6c0.442 0
0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8zM12.8 7.2h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h5.6c0.442 0 0.8-0.358
0.8-0.8s-0.358-0.8-0.8-0.8zM12.8 10.4h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h5.6c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8z\" fill=\"#008b00\"></path>
</svg> ")
and setting it like I do the default images. e.g.
(setq notmuch-tag-formats '(
("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))
("lists" (notmuch-tag-format-image-data tag (notmuch-tag-list-icon)))
))
I have also tried via the customize image setting and using the path to
the file.
Both ways produce nothing but a colored rectangle.
I have downloaded the file in question from http://IcoMoon.io
Am I missing something obvious here, or is this svg perhaps formatted
incorrectly for notmuch emacs?
Any pointers in the right direction are greatly appreciated.
Thanks.
next reply other threads:[~2014-08-01 0:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-01 0:30 MaDhAt2r [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-08-01 16:09 Custom Tag Images MaDhAt2r
2014-08-04 18:09 ` Austin Clements
2014-08-04 21:55 ` Tomi Ollila
2014-08-01 0:34 MaDhAt2r
[not found] <mailman.0.1406381268.8645.notmuch@notmuchmail.org>
2014-07-31 18:43 ` MaDhAt2r
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
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egx1kq57.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me \
--to=micah@dukefoo.com \
--cc=notmuch@notmuchmail.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 public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).