domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
234 stars 24 forks source link

Git branch segment #19

Closed jwintz closed 7 years ago

jwintz commented 7 years ago

Hi Dom,

I have both:

  (spaceline-toggle-all-the-icons-vc-status-on)
  (spaceline-toggle-all-the-icons-git-status-on)
  (spaceline-toggle-all-the-icons-vc-icon-on)

But there is no way for me to get the current branch name as a segment, even though additions and deletions show up just fine.

domtronn commented 7 years ago

What version control are you using? Git? Could you please print the value of vc-mode?

jwintz commented 7 years ago

Yes, git, mostly. Evaluating vc-mode does not provide pertinent information.

domtronn commented 7 years ago

That's odd... vc-mode is a native variable and Emacs should detect this for you... Did the original spaceline theme contain information for the branch? I can't see anything in spaceline-segments.el that uses/displays it. 🤔

I also don't think I have to do anything to set vc-mode up in my init.

Here's some docs on vc-mode and Emacs, but I'm not sure if they're useful.

jwintz commented 7 years ago

Again, my bad. Some snippets of my previous modeline setup were messing things around. By removing it it works just fine. Sorry for the noise :-(

screen shot 2017-04-21 at 15 15 07

domtronn commented 7 years ago

Ah, well glad it's working for you!

jwintz commented 7 years ago

Thanks and congratulations for the awesome job !