Emacs: How to Insert a Tab Character or Newline

By Xah Lee. Date: . Last updated: .

Insert a Tab Character or Newline

WARNING: You do NOT need to insert CR, unless you have a reason to. Emacs buffer always use LF for newline. On saving file, emacs converts the buffer's LF to proper line ending character specified for the buffer/file. [see Emacs: Newline Convention CR LF]

What does Ctrl+q mean?

Ctrl+q is the shortcut for the command quoted-insert. It let you enter the next typed charater literally.

Emacs Regular Expression

Regex in Emacs Lisp

Emacs, Tab, Indentation, Whitespace

Emacs Line Ending


Emacs Tutorial

Quick Start

Font

Split Window

File

Buffer

Find Replace

Copy/Paste

Unicode

Whitespace

Rectangle Edit

Line Wrap

Shell

View Special File

Editing Brackets

Org Mode

HTML

Emacs Efficiency

Misc