By default, paredit in the Clojure slime-repl doesn’t properly handle literal vectors and maps. This little snippet of elisp seems to fix it.
(defun fix-paredit-repl () (interactive) (local-set-key "{" 'paredit-open-curly) (local-set-key "}" 'paredit-close-curly) (modify-syntax-entry ?\{ "(}") (modify-syntax-entry ?\} "){") (modify-syntax-entry ?\[ "(]") (modify-syntax-entry ?\] ")[")) |
Comments