In AucTeX there are two useful commands:
C-c C-e for inserting the environment and
C-u C-c C-e for changing the environment at the point to another one. For me the latter command is quite inconvenient, so I would like to rebind it to something simpler, lets say, to
C-c e I've tried to do that in a standard way:
(defun my-tex-mode-hook () (local-set-key ((kbd "C-c e") (kbd "C-u C-c C-e"))) (add-hook 'TeX-mode-hook 'my-tex-mode-hook)
but the command
C-c e does not ask for the argument, i.e., which environment I want to choose. Instead it always changes to default
itemize environment. Moreover, it works only one time per emacs session.
Probably, my question fits better for the Emacs community, then sorry for that.