;; problem with paredit inserting the extra space before function arguments in ruby
(eval-after-load 'paredit-mode
'(defun paredit-space-for-delimiter-p (endp delimiter)
(and (not (if endp (eobp) (bobp)))
(memq (char-syntax (if endp (char-after) (char-before)))
(list ?\" ;; REMOVED ?w ?_
(let ((matching (matching-paren delimiter)))
(and matching (char-syntax matching)))))
(memq major-mode '(c-mode ruby-mode python-mode)))))