Skip to content

Instantly share code, notes, and snippets.

@constrict0r
Last active October 25, 2019 20:45
Show Gist options
  • Save constrict0r/d29fe78bace3df5eaf07123f5ede6fdc to your computer and use it in GitHub Desktop.
Save constrict0r/d29fe78bace3df5eaf07123f5ede6fdc to your computer and use it in GitHub Desktop.
Emacs common keys.
# Editor.
C-d => Delete character.
C-x C-f => Open file.
C-g => Get me out of everything!!!
C-x u => Undo.
C-x C-b => Buffers list.
C-x b => Go to previous buffer.
C-x k => Close current buffer.
C-s => Incremental search forward.
C-r => Incremental search backwards.
C-x h => Select all buffer text.
C-v => One page down.
M-v => One page up.
M-< => Jump to top of document.
M-> => Jump to bottom of document.
# Elpy.
C-c C-c => Run current script.
C-c C-t => Execute pytest.
M-x tox-run-current-test => Run test with tox.
M-x tox-run-current-class => Run class with tox.
# Bookmarks
C-x r m <RET> => Sets bookmark at point (default name).
C-x r m bookmark_name <RET> => Sets the bookmark named 'bookmark_name' at point.
C-x r b bookmark_name <RET> => Jump to bookmark named 'bookmark_name' (or default).
C-x r l => List all bookmarks.
M-x bookmark-delete <RET> bookmark_name <RET> => Deletes the named bookmark.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment