tried to monkey after the "transpose" thingy in emacs