ribbon interface customization

I would like to customize the ribbon interface. Not just re-arrange and turn on/off stuff, but program additional items for electrical symbol and template insertion. Have not looked too hard yet, but is there a text file that controls the ribbon interface, or is it encoded some other way, somewhere else?