Emacs: How to Insert a Tab Char 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 in Interactive Commands

Emacs, Tab, Indentation, Whitespace

Emacs Line Ending