alphapapa / ement.el

A Matrix client for GNU Emacs
GNU General Public License v3.0
488 stars 44 forks source link

Nicer formatting for emote events? #185

Open phil-s opened 1 year ago

phil-s commented 1 year ago

At the moment if someone "emotes" (/me does a thing in IRC and in Element; s e in Ement.el), the message face is different, but the formatting is the same as for normal messages.

Traditionally a message of foo would be rendered something like <username>: foo while /me does a thing would be rendered as <username> does a thing.

The current ement.el rendering of the latter is more like <username>: does a thing which is confusing.

Should there be a separate message format for emote events?

(Is that the only event type where a separate format would be useful, or are there others cases besides this one?)

alphapapa commented 1 year ago

I guess you aren't using the usernames-in-margin style, which renders like username does a thing in italic.

Implementing what you described might be a bit messy, because the sender-name message formatter would have to render differently depending on the message type, whereas now only the body formatter differs by type.