* Custom Tag Images
@ 2014-08-01 0:30 MaDhAt2r
0 siblings, 0 replies; 6+ messages in thread
From: MaDhAt2r @ 2014-08-01 0:30 UTC (permalink / raw)
To: notmuch
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Custom Tag Images
@ 2014-08-01 16:09 MaDhAt2r
2014-08-04 18:09 ` Austin Clements
0 siblings, 1 reply; 6+ messages in thread
From: MaDhAt2r @ 2014-08-01 16:09 UTC (permalink / raw)
To: notmuch
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Custom Tag Images
2014-08-01 16:09 MaDhAt2r
@ 2014-08-04 18:09 ` Austin Clements
2014-08-04 21:55 ` Tomi Ollila
0 siblings, 1 reply; 6+ messages in thread
From: Austin Clements @ 2014-08-04 18:09 UTC (permalink / raw)
To: MaDhAt2r; +Cc: notmuch
Quoth MaDhAt2r on Aug 01 at 11:09 am:
>
> Hello Everyone.
>
> If this is not the place to address this issue, could you please
> direct me to the proper forum.
Hi MaDhAt2r. This is a fine place for this question. (Though I see
the list received several copies of your message; not sure if that was
a misconfiguration on your end or the list's.)
> 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\"?>
I believe you need to remove the space between the " and the <?xml
here. I haven't tried the rest of your code, but when I insert an
image with this SVG data directly, the *Messages* buffer reports
"Error parsing SVG image". Removing this space fixes the error and
Emacs appears to render a reasonable image.
Hope that helps!
> <!-- 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Custom Tag Images
2014-08-04 18:09 ` Austin Clements
@ 2014-08-04 21:55 ` Tomi Ollila
0 siblings, 0 replies; 6+ messages in thread
From: Tomi Ollila @ 2014-08-04 21:55 UTC (permalink / raw)
To: Austin Clements, MaDhAt2r; +Cc: notmuch
On Mon, Aug 04 2014, Austin Clements <amdragon@MIT.EDU> wrote:
> Quoth MaDhAt2r on Aug 01 at 11:09 am:
>>
>> Hello Everyone.
>>
>> If this is not the place to address this issue, could you please
>> direct me to the proper forum.
>
> Hi MaDhAt2r. This is a fine place for this question. (Though I see
> the list received several copies of your message; not sure if that was
> a misconfiguration on your end or the list's.)
that is partially my fault as i released 3 of those that were on hold -- in
addition to the one that was there already :/
Tomi (on N9)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Custom Tag Images
@ 2014-08-01 0:34 MaDhAt2r
0 siblings, 0 replies; 6+ messages in thread
From: MaDhAt2r @ 2014-08-01 0:34 UTC (permalink / raw)
To: notmuch
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.0.1406381268.8645.notmuch@notmuchmail.org>]
* Custom Tag Images
[not found] <mailman.0.1406381268.8645.notmuch@notmuchmail.org>
@ 2014-07-31 18:43 ` MaDhAt2r
0 siblings, 0 replies; 6+ messages in thread
From: MaDhAt2r @ 2014-07-31 18:43 UTC (permalink / raw)
To: notmuch
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-04 21:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01 0:30 Custom Tag Images MaDhAt2r
-- strict thread matches above, loose matches on Subject: below --
2014-08-01 16:09 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
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).