dbordak / telephone-line

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

I'm too dumb: passing arguments to segments? #131

Closed c-alpha closed 1 year ago

c-alpha commented 2 years ago

I have this in my config:

(setq telephone-line-rhs '((nil    . (telephone-line-misc-info-segment))
                           (accent . ((telephone-line-atom-eol-segment t) (telephone-line-atom-encoding-segment t)))
                           (evil   . (telephone-line-airline-position-segment))))

Apparently I'm trying to pass arguments to the two segments in the middle part. But to no avail; it still shows "LF UTF-8" despite passing t to the two hide arguments.

I searched the Interwebs, but couldn't find an example of how it's done. Any hints appreciated.

c-alpha commented 2 years ago

ping?

dbordak commented 2 years ago

That should work. Is it maybe just that the config isn't applied on the current buffer yet? I can't really think of anything else.

c-alpha commented 2 years ago

Thanks for responding!

That should work. Is it maybe just that the config isn't applied on the current buffer yet? I can't really think of anything else.

Hm, I put the above elsip snippet in the scratch buffer, then eval-region on it, and open a file in a new frame. LF and UTF-8 indicators are shown. Perhaps a funcall is needed somewhere?