CS

YAS

  1. C-, : yas company
  2. C-. : display availalbe yas snippets to choose
  3. TAB : field expand may be
  4. C-c C-y : Yas expand

Code folding

Heuristic: shift -> show

All

  1. F12: toggle
  2. S-F12: hs-show-all
  3. M-F12: hide all

Level and block

  1. F9: hide level
  2. S-F9: show block
  3. M-F9: hide block

Engine mode

  1. C-x / : prefix command(pc)
  2. pc g: google
  3. pc s: stackoverflow
  4. pc e: evernote
  5. pc g: github

Org mode

  1. C-c | : table
  2. highlight , seperated data and C-c | to convert it into table

General

  1. M-i: helm swoop
  2. M -[: previous buffer
  3. M- ]: next buffer

Xmonad

  1. M-x e: start emacs
  2. M-x d: emacs with dired
  3. M-x m: emacs email

Modes

HTML editing in web-mode

  • default query replace will not work `replace-match-maybe-edit: Match data clobbered by buffer modification hooks` use vr/replace in this mode.

Debugging

Workflows

Search or find files

in project (git or hg) use projectile to search for files

  1. select project
  2. search the file

in a directory

  1. in a directory use helm-find to search files recursively
  2. open file with default program select and hitting “Enter” will open file using external program configured in `openfile` configs
  3. non-default program using “shell-command”
    • C-SPC ! ! “google-<TAB> fileName <TAB>” <ENTER>