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.

Reply via email to