dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
560 stars 49 forks source link

Customization of elements #71

Closed ShashankaNataraj closed 6 years ago

ShashankaNataraj commented 6 years ago

I want to have only the evil state on one end and the git branch on the other end of the telephone line with nothing in between. How do I achieve that?!

suyashbire1 commented 6 years ago

Check out the configuration.org file. It has a nice graphic that shows what segment can be configured where. For your specific case, this should work

(setq telephone-line-lhs
        '((evil     . (telephone-line-evil-tag-segment))))
(setq telephone-line-rhs
        '((accent   . (telephone-line-vc-segment))))
(telephone-line-mode 1)
ShashankaNataraj commented 6 years ago

@suyashbire1 awesome! Thanks! This is exactly what I wanted!