diff --git a/mode-customizations/ruby-mode.el b/mode-customizations/ruby-mode.el index a33f5b8..870b9c9 100644 --- a/mode-customizations/ruby-mode.el +++ b/mode-customizations/ruby-mode.el @@ -58,8 +58,8 @@ ;; Set up hs-mode (HideShow) for Ruby (add-to-list 'hs-special-modes-alist `(ruby-mode - ,(rx (or "def" "class" "module" "{" "[")) ; Block start - ,(rx (or "}" "]" "end")) ; Block end + ,(rx (or "def" "class" "module" "do")) ; Block start + ,(rx (or "end")) ; Block end ,(rx (or "#" "=begin")) ; Comment start ruby-forward-sexp nil))