noctuid / link-hint.el

Pentadactyl-like Link Hinting in Emacs with Avy
GNU General Public License v3.0
160 stars 22 forks source link

better custom types for action-messages and types #187

Closed xFA25E closed 3 years ago

xFA25E commented 3 years ago

2021-07-01 Valeriy Litkovskyy vlr.ltkvsk@protonmail.com

* link-hint.el (link-hint-action-messages, link-hint-types): better custom types
noctuid commented 3 years ago

Will the new type for link-hint-action-messages allow specifying other keywords (so it can be customized for custom actions)?

xFA25E commented 3 years ago

Yes, of course. Those are only suggestions with default value. Plist type is fully customizable

xFA25E commented 3 years ago

Example

xFA25E commented 3 years ago

Should I also add :key-type and :value-type of symbol and string respectively? I'm not sure if this plist is composed ONLY by keywords and strings. It seems to me that one could use any value there.

noctuid commented 3 years ago

The key could be other types. The message/value should be a string.

xFA25E commented 3 years ago

Added

xFA25E commented 3 years ago

Maybe it is better to order choices alphabetically?

noctuid commented 3 years ago

Thanks!