Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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 ?\] ")["))
(eval-after-load 'slime '(fix-paredit-repl))
(eval-after-load 'slime '(add-hook 'slime-repl-mode-hook (lambda () (setq lisp-indent-function 'clojure-indent-function))))
(eval-after-load 'slime '(add-hook 'slime-repl-mode-hook (lambda () (set-syntax-table clojure-mode-syntax-table))))
(eval-after-load 'slime '(add-hook 'slime-repl-mode-hook 'paredit-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.