From e2dea377b77bd3667f2a640a4bf3b86cae0f455b Mon Sep 17 00:00:00 2001 From: Tu Do Date: Mon, 4 May 2015 20:12:25 +0700 Subject: [PATCH] Disable smartparens in SLIME REPL --- contrib/slime/packages.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/slime/packages.el b/contrib/slime/packages.el index a35f7c7c5..1c9c66ae8 100644 --- a/contrib/slime/packages.el +++ b/contrib/slime/packages.el @@ -29,7 +29,12 @@ (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol) ;; enabel smartparen in code buffer and SLIME REPL - (add-hook 'slime-repl-mode-hook #'smartparens-strict-mode) + ;; (add-hook 'slime-repl-mode-hook #'smartparens-strict-mode) + (defun slime/disable-smartparens () + (smartparens-strict-mode -1) + (turn-off-smartparens-mode)) + + (add-hook 'slime-repl-mode-hook #'slime/disable-smartparens) (add-to-hooks 'slime-mode '(lisp-mode-hook scheme-mode-hook))) :config