My personal emacs configures
$ cd ~ $ git clone https://github.com/liwenzhu/emacs.d.git .emacs.d
C-c y Enable snippets.
C-c a Enable auto-complete.
C-c C-n Mark next work as selected and enable multiple cursors.
C-c = Expand region.
C-c C-d add a block comment of stars.
All commands are start with "C-c C-m":
extract-function: Extracts the marked expressions out into a new named function.
extract-method: Extracts the marked expressions out into a new named method in an object literal.
introduce-parameter: Changes the marked expression to a parameter in a local function.
localize-parameter: Changes a parameter to a local var in a local function.
expand-object: Converts a one line object literal to multiline.
contract-object: Converts a multiline object literal to one line.
expand-function: Converts a one line function to multiline (expecting semicolons as statement delimiters).
contract-function: Converts a multiline function to one line (expecting semicolons as statement delimiters).
expand-array: Converts a one line array to multiline.
contract-array: Converts a multiline array to one line.
wrap-buffer-in-iife: Wraps the entire buffer in an immediately invoked function expression
inject-global-in-iife: Creates a shortcut for a marked global by injecting it in the wrapping immediately invoked function expression
add-to-globals-annotation: Creates a
/*global */annotation if it is missing, and adds the var at point to it.
extract-var: Takes a marked expression and replaces it with a var.
inline-var: Replaces all instances of a variable with its initial value.
rename-var: Renames the variable on point and all occurrences in its lexical scope.
var-to-this: Changes local
var ato be
arguments-to-object: Replaces arguments to a function call with an object literal of named arguments.
ternary-to-if: Converts ternary operator to if-statement.
split-var-declaration: Splits a
varwith multiple vars declared, into several
split-string: Splits a
unwrap: Replaces the parent statement with the selected region.
log-this: Adds a console.log statement for what is at point (or region).
forward-slurp: Moves the next statement into current function, if-statement, for-loop or while-loop.
forward-barf: Moves the last child out of current function, if-statement, for-loop or while-loop.
kill: Kills to the end of the line, but does not cross semantic boundaries.