Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I break the long line in emacs (non windows) to the next line?

Tags:

split

emacs

line

enter image description here

With emacs (non windows), I see '$' mark at the end of the line when the terminal width is narrow. Is there a way to break the long line to the next line instead of showing the '$' mark?

ADDED

M-x auto-fill-mode works fine for text-mode, but with org-mode, the $ mark remains with the auto-fill-mode.

like image 289
prosseek Avatar asked Feb 02 '11 20:02

prosseek


People also ask

How to go to the end of a line in Emacs?

Unlike C-n and C-p , most of the Emacs commands that work on lines work on logical lines. For instance, C-a ( move-beginning-of-line ) and C-e ( move-end-of-line ) respectively move to the beginning and end of the logical line.

How do I enable line mode in Emacs?

To turn on Visual Line mode in the current buffer, type M-x visual-line-mode ; repeating this command turns it off. You can also turn on Visual Line mode using the menu bar: in the Options menu, select the ' Line Wrapping in this Buffer ' submenu, followed by the ' Word Wrap (Visual Line mode) ' menu item.

What is Auto Fill mode?

Auto Fill mode is a buffer-local minor mode (see Minor Modes) in which lines are broken automatically when the line becomes too wide and you type SPC or RET . M-x auto-fill-mode. Enable or disable Auto Fill mode. SPC RET. In Auto Fill mode, break lines when appropriate.


1 Answers

You can get emacs to break long lines into multiple shorter lines with M-x fill-paragraph or M-x fill-region. You can also make this the default behavior with M-x auto-fill-mode.

like image 157
Jeff Ames Avatar answered Nov 06 '22 06:11

Jeff Ames