Skip to content

Instantly share code, notes, and snippets.

@shanbhardwaj
Created September 27, 2010 22:34
Show Gist options
  • Save shanbhardwaj/600005 to your computer and use it in GitHub Desktop.
Save shanbhardwaj/600005 to your computer and use it in GitHub Desktop.
;; 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)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment