Disable smartparens in SLIME REPL

This commit is contained in:
Tu Do 2015-05-04 20:12:25 +07:00 committed by syl20bnr
parent 7c3d95c962
commit e2dea377b7

View file

@ -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