The default of key binding C-a/C-e
is only for one thing, move to the beginning/end of the line, is there any package that can make Emacs act like this:
- If I'm not at the end of a line,
C-e
will go to the end of the line, otherwise, go the end of next line - If I'm not at the beginning of a line,
C-a
will go to beginning of the line, otherwise go to the beginning of the next line.
The point is you can just keep hitting C-a/e
to go to beginning/end of every line without moving your finger to reach C-n/p
.
And with a prefix(C-u
) they will go to the beginning/end of line in the opposite direction.
C-a
to go "up" andC-e
to go "down"? In other words, is the meaning of "next line" the same in items 1 and 2? – Constantine Nov 20 '14 at 15:19C-a
to up, andC-e
to down" problem when I posted this question, but then I thought if someone gavedefun
solution like you, anyone would know what to do if he likesC-a
to "up".. – CodyChan Nov 24 '14 at 15:17