I have tried to figure out how to delay init of default style in order to fix #18. This pr seems to fix the issue for me. I have tested it using org-mode tags and running emacs in daemon mode.
The solution sets svg-lib-style-default to nil and introduces a getter that gets the value, or computes defaults if no value is set. The downside is that svg-lib-style-default shouldn't be accessed directly anymore, but the upside is that the change to the codebase is pretty small.
My elisp experience is not that good, so any suggestions for improvement is welcomed!
I have tried to figure out how to delay init of default style in order to fix #18. This pr seems to fix the issue for me. I have tested it using org-mode tags and running emacs in daemon mode.
The solution sets
svg-lib-style-default
to nil and introduces a getter that gets the value, or computes defaults if no value is set. The downside is thatsvg-lib-style-default
shouldn't be accessed directly anymore, but the upside is that the change to the codebase is pretty small.My elisp experience is not that good, so any suggestions for improvement is welcomed!