While within rex mode, functions used within the rex function are attached, so one can get e.g. auto-completion within editors.
rex
rex_mode()