Advance one screen line at a time in emacs

Sep 05, '02 09:18:49AM

Contributed by: Cadre

Ever get annoyed how if a line in emacs wraps several lines, you can't go down to the next line on the screen, but only the next text line?

Grab the screen-lines program and stick it in the directory: /usr/share/emacs/site-lisp/

Then, add the following lines to your .emacs file:

(load-library "screen-lines")
(autoload 'screen-lines-mode "screen-lines" "Toggle Screen Lines minor mode for the current buffer." t)
(autoload 'turn-on-screen-lines-mode "screen-lines" "Turn on Screen Lines minor mode for the current buffer." t)
(autoload 'turn-off-screen-lines-mode "screen-lines" "Turn off Screen Lines minor mode for the current buffer." t)
Then hit M-x screen-lines-mode to switch between screen line editing mode and the default text line editing mode.

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020905061849715