Skip to content

Instantly share code, notes, and snippets.

@shanbhardwaj
Created February 19, 2010 03:32
Show Gist options
  • Save shanbhardwaj/308378 to your computer and use it in GitHub Desktop.
Save shanbhardwaj/308378 to your computer and use it in GitHub Desktop.
(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)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment