Quick cheat sheet.
C-x C-k
F3
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 r
C-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 n
C-x n d
narrow to functionC-x n w
widen to bufferM-x smerge-ediff
resolve conflicts using ediffC-c C-p
C-c C-c
C-c C-r
sudo apt-get install elpa-elpy
M-x elpy-config
M-x elpy-mode
C-c C-c
C-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