User Tools

Site Tools


resources:emacs_resources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:emacs_resources [2016/01/18 19:33] anthonyresources:emacs_resources [2019/05/22 16:08] (current) – external edit 127.0.0.1
Line 72: Line 72:
 ---- ----
  
 +==== Add line break (RETURN) to end of all lines ====
  
 +[Put another way: insert spaces, insert empty line in between every line.]
 +
 +<code>
 +M-x replace-regexp 
 +.$[RET]
 +\&[C-q][C-j][RET]
 +</code>
 +
 +"\&" is the emacs pattern that stands for "the entire matched pattern"
 +
 +C-q indicates something like "insert the following input literally" (I remember it by thinking of this as "quoting" something).
 +
 +C-j inserts a line break (a RETURN keypress, but this might not be the most precise description).
 +
 +\\
 +----
resources/emacs_resources.1453163596.txt.gz · Last modified: (external edit)