Changing the macro to be triggered by a < key seems sensible, since that's related to tags, but why not also change the insert closing tag then to ctrl+> for instance? Right now they are very separate key- wise, but quite close function-wise. Andreas