u/psy-q

▲ 7 r/emacs

elixir-ts-mode: Highlighting and navigation for do/end, fn/end etc. keywords?

I wonder if it's somehow possible to make elixir-ts-mode highlight do/end, fn/end etc. keywords and basically treat them like other modes treat brackets, which in many cases is what they are in Elixir. Languages that share this syntax such as Ruby, Crystal etc. are the same way.

The mode should highlight keyword siblings when point is on them. So having point on the end of a do/end pair should highlight its do, if it's nested it should highlight only the one at the matching nesting level. Bonus would be if rainbow-delimiters or some other package can somehow color each indent level differently.

ruby-mode has this feature, but neither elixir-ts-mode nor ruby-ts-mode do. Is this maybe a limitation of tree-sitter support? Will 31.0 change something here?

elixir-ts-mode is integrated into emacs now, which is great, but I don't know where to suggest new features for the mode or ask questions now that it's not separately maintained. It was suggested that I take it to the emacs-devel list, but it seems to me they have more important things to do, especially since I can't figure out where this needs to be implemented or if it's even possible with current TS support.

reddit.com
u/psy-q — 20 hours ago

Mormons (members of the Church of the LDS) proselytizing on Swiss trains/near train stations

This keeps happening to me and now I'm wondering how widespread it is, because it seems nobody I know ever had this experience: You get on a train that doesn't stop for a good while, e.g. Zürich to Sargans, and after some time a bunch of kids wearing white shirts and suit pants or skirts/dresses might ask to sit next to you.

Of course they're Mormons (they have nametags with "Elder Soandso" or "Sister Soandso") and they're on a mission in Switzerland trying to proselytize.

I think it's rude to do this with a captive audience in a train, but if they're not handing out leaflets it's not even illegal, at least it's not against the Zugordnung. They're "just talking to people".

The same seems to happen to me near train stations, or in other places with a lot of foot traffic in Zürich.

Last time I simply complimented them on learning German to a conversational level so quickly (they said it took them six months) and that was that. But as a bünzli I feel my privacy slightly invaded by these encounters and it took me several attempts to be able to stay friendly and just send them away.

What are your feelings on this? How do you/would you react?

reddit.com
u/psy-q — 20 days ago