Skip to content

Instantly share code, notes, and snippets.

@lokedhs
Created October 4, 2019 13:08
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lokedhs/859deb7d8a262424ea86ddf6b63f9bf7 to your computer and use it in GitHub Desktop.
(defun em-spacing-predicates (endp delimiter)
(not (or (and (eql ?\( delimiter)
(eql ?\@ (char-before (point))))
(and (eql ?\" delimiter)
(eql ?\p (char-before (point)))
(eql ?\# (char-before (1- (point))))))))
(setq paredit-space-for-delimiter-predicates '(em-spacing-predicates))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment