CS
YAS
- C-, : yas company
- C-. : display availalbe yas snippets to choose
- TAB : field expand may be
- C-c C-y : Yas expand
Code folding
Heuristic: shift -> show
All
- F12: toggle
- S-F12: hs-show-all
- M-F12: hide all
Level and block
- F9: hide level
- S-F9: show block
- M-F9: hide block
Engine mode
- C-x / : prefix command(pc)
- pc g: google
- pc s: stackoverflow
- pc e: evernote
- pc g: github
Org mode
- C-c | : table
- highlight , seperated data and C-c | to convert it into table
General
- M-i: helm swoop
- M -[: previous buffer
- M- ]: next buffer
Xmonad
- M-x e: start emacs
- M-x d: emacs with dired
- 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
- select project
- search the file
in a directory
- in a directory use helm-find to search files recursively
- open file with default program select and hitting “Enter” will open file using external program configured in `openfile` configs
- non-default program
using “shell-command”
- C-SPC ! ! “google-<TAB> fileName <TAB>” <ENTER>