Question

If I have a multiline sentence in Emacs it naturally overflows onto the the following lines. Now, if my cursor is at the beginning of such a sentence and I press the DOWN ARROW key, the cursor is placed at the beginning of the next sentence (which might be at 4-5 lines down), rather than on the next line itself (which other editors do). Same is the behavior of the END and HOME keys.

Is there a way in which I can change this behavior and get the cursor on the next line instead of the next sentence?

Was it helpful?

Solution

I haven't yet tried it myself, but I think what you are asking for is the default behavior for emacs 23. What version are you running?

You might want to check out the page Move By Visible Lines page on the emacswiki.

OTHER TIPS

You might want to try auto-fill-mode or longlines-mode. To get either use M-X then type the command you want. Toggle them off the same way.

If that doesn't work you may want to examine the binding that is being applied to your down arrow. Type C-h k then hit the down arrow key.

It sounds as though the text is wrapping, so by definition (a line being a group of characters separated by a carriage return), it is moving down to the next line.

I agree it is a pain, however a lot of other editors also have this behaviour.

One way is to turn off wrapping:

M-x toggle-truncate-lines

You wont be able to see all of the text in the editor, however it will move down to the next line.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top