danielfm / smudge

Control the Spotify app from within Emacs.
https://asciinema.org/a/218654
GNU General Public License v3.0
313 stars 47 forks source link

Powerline integration #22

Open Bretley opened 8 years ago

Bretley commented 8 years ago

Is there a face for this in the mode line, or is it just listed in minor modes. Documentation is a bit unclear, and I'd love to see this working with powerline

danielfm commented 5 years ago

I don't use powerline myself, so I don't even know how to begin adding support for this.

One thing I'm changing is to set the song being played in the global-mode-line instead of doing so via the mode :lighter string, maybe it will play better with powerline.

Check the update branch, which is where I'm experimenting a few things.

jkdufair commented 5 years ago

@danielfm @Bretley I'm a powerline user. I played around a bit with this. Since powerline and/or the modeline itself only has specific sections, this package puts the player status in the "miscellaneous" section. Which makes it a bit hard to configure for, say, it's own section with delimiters. The best approach would be to have a powerline theme that defines a section for spotify info. But then you'd have to use that instead of whatever theme you may be using now. Or perhaps you could extend the theme you are using to look for a regex that has the spotify player status and add highlighting/delimiters.

If you are aware of any examples of packages that do this type of thing (that aren't already using i.e. minor mode or other sections of powerline), I'd be interested in seeing them.