Emacs: No Wrap Lines

By Xah Lee. Date: . Last updated: .

make lines NOT soft-wrap

Alt+x toggle-truncate-lines

when on, lines runs off and disappears on the right window margin. You have to horizontal scroll right to see them.

💡 TIP: This is useful when you just want to get an overview of long paragraphs.

Note: the command name is misleading. It doesn't really truncate. Proper name would be “toggle-line-softwrap”.

emacs toggle truncate lines 61581
emacs toggle-truncate-lines

put this in your Emacs Init File:

;; make emacs not soft-wrap lines by default for all buffers
(setq-default truncate-lines t)
;; not recommended
;; if you do this, dired filenames or url may show at next line 

Emacs Lines, Column, Cursor Position

Soft-Wrap Lines

Reformat Lines (Hard-Wrap)

Show Line Number, Column Number

Highlight Current Line, Screen Line