Home / Emacs / Global keymap
Lines
| Key | Description | Note |
|---|---|---|
C-j or RET |
insert newline | |
C-m |
insert newline preserving syntax (e.g. indentation, comment, etc.) | |
C-o |
insert newline without moving point | open line |
C-M-o |
insert newline without moving point, preserving indentation | open line |
M-^ |
join line or region of lines backward 1 | |
C-u M-^ |
join line forward | |
C-S-DEL |
kill line |
Related commands:
reverse-regionreverse the order of lines in regionsort-linessort lines in region or file; reverse withC-udelete-duplicate-linesdelete duplicate lines in region (no need to sort); keep blanks withC-u C-u C-u
Footnotes:
1
For paragraphs, use M-q that respects sentence-end-double-space.