summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-08-04 15:29:00 +0200
committerAlan Pearce2017-08-04 15:29:00 +0200
commit5029163e7d68416c9b04124467b3084c50f19bb7 (patch)
tree5878851fb514c2bcc0241ce24154c5506e406956
parent979a1c53860c2aa8705084ebaedba2ea8d85665e (diff)
downloadnixfiles-5029163e7d68416c9b04124467b3084c50f19bb7.tar.lz
nixfiles-5029163e7d68416c9b04124467b3084c50f19bb7.tar.zst
nixfiles-5029163e7d68416c9b04124467b3084c50f19bb7.zip
Emacs: Fix smartparens not being disabled in lisp modes
-rw-r--r--emacs/.emacs.d/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 5df1f8be..9a93ab2b 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