This plugin allows you to record and use your own macros.

WWW: http://plugins.geany.org/geanymacro.html