Extract ruby-mode-hook into own defun