Suppose I rebind C-e
(move-end-of-line
) to C-o
in the global-map.
How can I make C-o
the corresponding function in all modes (if it exists).
So, for example, in org-mode C-o
should be org-end-of-line
, not move-end-of-line
.
NB: I do not simply want, in this example, C-o
to be move-end-of-line
everywhere. Rather I want it to be the corresponding command for that mode, which in this case is org-end-of-line
.