svg-mode-line-themes
svg-mode-line-themes copied to clipboard
Don't enable when SVG is not available?
So, perhaps use (unless (image-type-available-p 'svg) (error "No SVG support"))
to avoid enabling, and throw an error?
Adding a PR for this now
Fixed
Note that because using a non-default theme is going to be done after an smt/enable
it's necessary to return-from a smt/set-theme
to avoid the user having a blank modeline in a non-svg env.
e.g. Normal use.
(smt/enable)
(smt/set-theme 'my-theme-called-whatever)
I'll add a PR for this later.
Isn't "diesel" the default theme?
For the future when there are many themes available and people do not use a default.
We have to also return-from a set-theme when svg isn't available.
Basically there is currently no way for a user to end up with a blank mode line.
SVG support --> all fine
No SVG support --> can't enable --> all fine
I tried it, got blank mode line. I'll get some notes on this when I arrive at work (commuting now)
Seems easy to reproduce the blank line situation under (apparently) default example config from the readme. Just start with, e.g. emacs -nw