Skip to content
David Chandek-Stark edited this page May 19, 2015 · 2 revisions

Replace pattern in multiple files

  • M-x find-name-dired: you will be prompted for a root directory and a filename pattern.
  • Press t to "toggle mark" for all files found.
  • Press Q for "Query-Replace in Files...": you will be prompted for query/substitution regexps.
  • C-x s ! to save all files

Newline and indent

C-j 
Clone this wiki locally