domtronn / spaceline-all-the-icons.el

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

Adding conda environment (anaconda.org) segment. #25

Closed jwintz closed 7 years ago

jwintz commented 7 years ago

See https://github.com/necaris/conda.el.

jwintz commented 7 years ago

Would love to colour it though, but it is not as straight-forward as I wish ;-)

jwintz commented 7 years ago

Hummm, for some reason it breaks the buffer-position and the hud segments, whenever its condition is not true ...

domtronn commented 7 years ago

I'm not familiar with Conda or Anaconda 😅

What does conda-env-current-name look like? Also, in your predicate, won't conda-env-current-name be nil if there isn't one?

And how does it break the buffer-position/hud segments?

jwintz commented 7 years ago

What does conda-env-current-name look like?

It is defined as such:

(defvar conda-env-current-name nil "Name of current conda env.")

Also, in your predicate, won't conda-env-current-name be nil if there isn't one?

(length nil) ;; => 0

So I guess it is fine ?

As for the buffer-position/hud segments, they only both appear when the :when condition of this segment holds.

I have then tried to use the vanilla spaceline-all-the-icons, but I can't these two to work together.

jwintz commented 7 years ago

Will reopen from a feature branch (using gitflow) when working as expected (which, no conflict with hud and buffer-position).