Skip to content

Instantly share code, notes, and snippets.

View jamiecook's full-sized avatar

Jamie Cook jamiecook

View GitHub Profile
@ajmcmiddlin
ajmcmiddlin / (Spac)emacs cheat sheet.md
Last active July 18, 2017 00:36
Stuff ajmccluskey needs to remember about (Spac)emacs

General

  • Space *: Search for word under cursor
  • Space t F toggles auto-fill-mode, which enables hard wrapping
  • C-x f calls set-fill-column - sets the column to wrap at
  • g q to format (applies wrapping if auto-fill-mode enabled)
  • Space s c clears search term
  • * e edit word under cursor and change all in file/display (depending on mode)
  • Space f y echo and yank filename for current buffer
@ivar
ivar / spacemacs global search and replace.md
Last active August 1, 2022 00:04
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.