Install undo-tree mode.