Skip to content

Instantly share code, notes, and snippets.

@tianchaijz
Last active August 29, 2015 14:03
Show Gist options
  • Save tianchaijz/c10c04d2d631b4df6eb4 to your computer and use it in GitHub Desktop.
Save tianchaijz/c10c04d2d631b4df6eb4 to your computer and use it in GitHub Desktop.
Emacs Key Bindings
key bindingsexplanation
M-x shell-command-on-region(M-|)send current region to shell
C-u M-! <shell-command>insert command result into buffer
C-u M-| <shell-command>current region is sent to the shell-command and replaced with the result
M-^join line
M-g gjump to the specified line
M-x apply-macro-to-region-linesapply macro to region lines
C-u C-space(or C-u C-@)go back to previous line position
C-x C-space(or C-x C-@)go back to previous line position
C-M-right | C-M-leftgo to the beginning or the end of the current expression (C-M-f, C-M-b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment