Skip to content

Instantly share code, notes, and snippets.

@ericmjonas
Created February 24, 2014 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericmjonas/9196562 to your computer and use it in GitHub Desktop.
Save ericmjonas/9196562 to your computer and use it in GitHub Desktop.
;;http://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-keys-to-commands.html
(add-hook 'python-mode-hook 'hs-minor-mode)
(global-set-key [C-return] 'hs-toggle-hiding)
(global-set-key [C-M-S-return] 'hs-show-all)
(global-set-key [C-M-return] 'hs-hide-all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment