diff options
author | Case Duckworth | 2021-02-08 16:44:32 -0600 |
---|---|---|
committer | Case Duckworth | 2021-02-08 16:44:32 -0600 |
commit | f57bbf452aeda0081d3dbc74dbd4db6bc4ae211d (patch) | |
tree | 6b36d1c25bbecf3670e13ab8084bfe4e15dccd14 | |
parent | Add iscroll (diff) | |
download | emacs-f57bbf452aeda0081d3dbc74dbd4db6bc4ae211d.tar.gz emacs-f57bbf452aeda0081d3dbc74dbd4db6bc4ae211d.zip |
Change smartparens-strict behavior
When not in Lisp, smartparens-strict is more hindrance than help.
-rw-r--r-- | config.org | 8 |
1 files 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. | |||
1662 | (blackout 'smartparens-mode) | 1662 | (blackout 'smartparens-mode) |
1663 | #+end_src | 1663 | #+end_src |
1664 | 1664 | ||
1665 | **** Be strict in =prog-mode= | 1665 | **** Enable in programming modes |
1666 | 1666 | ||
1667 | #+begin_src emacs-lisp :noweb-ref hooks | 1667 | #+begin_src emacs-lisp :noweb-ref hooks |
1668 | (add-hook 'prog-mode-hook #'smartparens-strict-mode) | 1668 | (add-hook 'prog-mode-hook #'smartparens-mode) |
1669 | |||
1670 | (dolist (hook '(lisp-mode-hook | ||
1671 | emacs-lisp-mode-hook)) | ||
1672 | (add-hook hook #'smartparens-strict-mode)) | ||
1669 | #+end_src | 1673 | #+end_src |
1670 | 1674 | ||
1671 | **** Use =paredit= bindings | 1675 | **** Use =paredit= bindings |