Skip to content

Instantly share code, notes, and snippets.

@trmwzm
Forked from ivar/spacemacs global search and replace.md
Created January 18, 2017 18:28
Show Gist options
  • Save trmwzm/9a1889b201cc262093ce7569c732e5dc to your computer and use it in GitHub Desktop.
Save trmwzm/9a1889b201cc262093ce7569c732e5dc to your computer and use it in GitHub Desktop.
spacemacs - global search and replace

There's a couple of ways, one way is

  • Get search results
    • Do SPC / and type in your search string
    • or SPC x S and search string - where x is your scope indicator (p for project, d for directory, etc..)
  • Once you have the occurences you want, hit C-c C-e inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like that
  • in that buffer you can use any commands you'd normally use on a buffer
  • the C-c C-c to commit your changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment