Skip to content

Instantly share code, notes, and snippets.

@huseyinyilmaz
Created November 22, 2017 18:35
Show Gist options
  • Save huseyinyilmaz/a7abf23617719b1aa58fc3454aecd4c5 to your computer and use it in GitHub Desktop.
Save huseyinyilmaz/a7abf23617719b1aa58fc3454aecd4c5 to your computer and use it in GitHub Desktop.

Default shortcuts

  • C-x space : rectangular mark
  • M-/ : debrev word (uses current open buffers.)
  • C M - h : mark defun (mark current function.)
  • C-u 5 … : repeat following action 5 times.
  • C-x [ : go to beginning of the page
  • C-x ] : go to end of the page

Highlight mode

  • C-x w . : highlight current word.
  • C-x w r : unhighlight
  • C-x w h : highlight regexp

Goto char

  • C-c space : goto-char

Multiople Cursor

  • C-S-c C-S-c: Multiple cursors for each marked line.
  • C-S-<: Mark all like this
  • C-S->: Mark next like this (press multiple times to get repeat.)

Swoop (Dont remember name of mode)

  • M-i : Swoop in current file.

Projectile

  • C-c p s s : Search in project
  • C-c p f : find file in project (searh in file names)

Web mode

  • C-c C-n : Move between start/end tag
  • C-c C-f : fold unfold element.
  • C-c C-w : toggle whitespace

String Inflection

  • C-c C-u Cycle Camelcase, Snakecase

Evil number

  • C-+ increase number at point.
  • C– decrise number at point.

Debugging configuration

  • M-x flycheck-verify-setup
  • M-x flycheck-verify-checker
  • M-x company-diag
  • M-x web-mode-debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment