Quick cheat sheet.
C-x C-kF3 start recording a macroF4 stop recording or replay last recorded macro
C-x C-k b <i> bind macro to key <i>C-x C-k <i> replay macro with key <i>C-x C-k n name last macro (use with M-x insert-kbd-macro to save macros)C-x C-k C-e edit last macro (when you screwed up and don’t want to start over)C-SPC set the markC-x C-SPC pop global markC-u C-SPC pop local markC-x C-x switch point/mark + selectC-x rC-x r s <i> save text to register <i>C-x r i <i> insert text from register <i>C-x r SPC <i> save point to register <i>C-x r j <i> jump to register <i>C-x nC-x n d narrow to functionC-x n w widen to bufferM-x smerge-ediff resolve conflicts using ediffC-c C-pC-c C-cC-c C-rsudo apt-get install elpa-elpyM-x elpy-configM-x elpy-modeC-c C-cC-c C-z(projectile-mode +1)
(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
(helm-projectile)
(helm-projectile-on)
beware of fancy prompts on the remote machine:
case "$TERM" in
"dumb")
export PS1="> "
;;
xterm*|rxvt*|eterm*|screen*)
tty -s && export PS1="some crazy prompt stuff"
;;
esac