From f57bbf452aeda0081d3dbc74dbd4db6bc4ae211d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Feb 2021 16:44:32 -0600 Subject: Change smartparens-strict behavior When not in Lisp, smartparens-strict is more hindrance than help. --- config.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 4408a05..b1dae3e 100644 --- a/config.org +++ b/config.org @@ -1662,10 +1662,14 @@ to auto-fill in programming modes, but /only/ the comments. (blackout 'smartparens-mode) #+end_src -**** Be strict in =prog-mode= +**** Enable in programming modes #+begin_src emacs-lisp :noweb-ref hooks - (add-hook 'prog-mode-hook #'smartparens-strict-mode) + (add-hook 'prog-mode-hook #'smartparens-mode) + + (dolist (hook '(lisp-mode-hook + emacs-lisp-mode-hook)) + (add-hook hook #'smartparens-strict-mode)) #+end_src **** Use =paredit= bindings -- cgit 1.4.1-21-gabe81