Skip to content

Instantly share code, notes, and snippets.

@daveshah
Forked from ivar/spacemacs global search and replace.md
Created January 26, 2017 16:52
Show Gist options
  • Save daveshah/1dae6d3853a9728bd1a529f39fcf1af1 to your computer and use it in GitHub Desktop.
Save daveshah/1dae6d3853a9728bd1a529f39fcf1af1 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