Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ruby code folding using hideshow
(eval-after-load "hideshow"
'(add-to-list 'hs-special-modes-alist
,(rx (or "def" "class" "module" "{" "[")) ; Block start
,(rx (or "}" "]" "end")) ; Block end
,(rx (or "#" "=begin")) ; Comment start
ruby-forward-sexp nil)))

This comment has been minimized.

Copy link

@scudelletti scudelletti commented Apr 9, 2015

Thanks! o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment