Rudy’s OBTF Rudolf Adamkovič

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-region reverse the order of lines in region
  • sort-lines sort lines in region or file; reverse with C-u
  • delete-duplicate-lines delete duplicate lines in region (no need to sort); keep blanks with C-u C-u C-u

Footnotes:

1

For paragraphs, use M-q that respects sentence-end-double-space.


© 2025 Rudolf Adamkovič under GNU General Public License (GPL) version 3 or later.
Made with Emacs and secret alien technologies of yesteryear.