Skip to content

Instantly share code, notes, and snippets.

@theleoborges
Created June 11, 2015 05:51
Show Gist options
  • Save theleoborges/0bf189252ada3c5dc047 to your computer and use it in GitHub Desktop.
Save theleoborges/0bf189252ada3c5dc047 to your computer and use it in GitHub Desktop.
(setq hs-show-all-p t)
(defun hs-mode-toggle-show-all ()
(interactive)
(if hs-show-all-p
(hs-hide-all)
(hs-show-all))
(setq hs-show-all-p (not hs-show-all-p)))
(global-set-key (kbd "C-.") 'hs-toggle-hiding)
(global-set-key (kbd "C-c C-.") 'hs-mode-toggle-show-all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment