From 5029163e7d68416c9b04124467b3084c50f19bb7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Aug 2017 15:29:00 +0200 Subject: Emacs: Fix smartparens not being disabled in lisp modes --- emacs/.emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 5df1f8b..9a93ab2 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -2778,7 +2778,9 @@ (sp-local-pair "{{" "}}")) (show-smartparens-global-mode t) (smartparens-global-strict-mode t) - (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode) + (define-hook-helper lisp-mode-common () + (smartparens-strict-mode -1) + (smartparens-mode -1)) (add-hook 'coffee-mode-hook #'turn-off-smartparens-mode))) ;; #+END_SRC -- cgit 1.4.1