Skip to content

Instantly share code, notes, and snippets.

@fepa
Created November 9, 2012 15:24
Show Gist options
  • Save fepa/4046286 to your computer and use it in GitHub Desktop.
Save fepa/4046286 to your computer and use it in GitHub Desktop.
1. M-x find-name-dired: you will be prompted for a root directory and a filename pattern.
2. Press t to "toggle mark" for all files found.
3. Press Q for "Query-Replace in Files...": you will be prompted for query/substitution regexps.
4. Proceed as with query-replace-regexp: SPACE to replace and move to next match, n to skip a match, etc.
Source: http://stackoverflow.com/a/271136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment