Backbone cyclization of analgesic conotoxin GeXIVA facilitates direct folding of the ribbon isomer.