The other option is to use Lazarus' macro feature, but that makes it editor dependent.
Alas, the standard FPC macro feature does not support dots...
(I once filed a bug report for that)
If it would support dots, it would be a doddle to write such a macro.