summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org47
1 files changed, 24 insertions, 23 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 981e914c..8d82022d 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2426,29 +2426,30 @@ I didn’t find smartparens’ implementation of paredit style to be as
 nice as the real version
 
 #+BEGIN_SRC emacs-lisp
-(req-package smartparens-config
-  :config (progn
-            (sp-use-smartparens-bindings)
-            (fset 'wrap-with-paren "\C-](") ;; `sp-select-next-thing-exchange'
-            (bind-key "C-(" #'wrap-with-paren sp-keymap)
-            (bind-key "C-)" #'sp-forward-slurp-sexp sp-keymap)
-            (bind-key "M-<backspace>" #'backward-kill-word sp-keymap)
-            (bind-key "M-?" #'sp-convolute-sexp sp-keymap)
-            (bind-key "C-M-t" #'sp-transpose-sexp sp-keymap)
-            (bind-key "M-r" #'sp-raise-sexp sp-keymap)
-            (bind-key "M-s" #'sp-splice-sexp sp-keymap)
-            (bind-key "M-S" #'sp-split-sexp sp-keymap)
-            (bind-key "M-J" #'sp-join-sexp sp-keymap)
-            (bind-key "M-<up>" #'sp-splice-sexp-killing-backward sp-keymap)
-            (bind-key "M-<down>" #'sp-splice-sexp-killing-forward sp-keymap)
-            (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap)
-            (bind-key "C-S-<right>" #'sp-slurp-hybrid-sexp sp-keymap)
-            (sp-with-modes '(web-mode twig-mode)
-              (sp-local-pair "{%" "%}")
-              (sp-local-pair "{{" "}}"))
-            (show-smartparens-global-mode t)
-            (smartparens-global-strict-mode t)
-            (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode)))
+  (req-package smartparens-config
+    :ensure smartparens
+    :config (progn
+              (sp-use-smartparens-bindings)
+              (fset 'wrap-with-paren "\C-](") ;; `sp-select-next-thing-exchange'
+              (bind-key "C-(" #'wrap-with-paren sp-keymap)
+              (bind-key "C-)" #'sp-forward-slurp-sexp sp-keymap)
+              (bind-key "M-<backspace>" #'backward-kill-word sp-keymap)
+              (bind-key "M-?" #'sp-convolute-sexp sp-keymap)
+              (bind-key "C-M-t" #'sp-transpose-sexp sp-keymap)
+              (bind-key "M-r" #'sp-raise-sexp sp-keymap)
+              (bind-key "M-s" #'sp-splice-sexp sp-keymap)
+              (bind-key "M-S" #'sp-split-sexp sp-keymap)
+              (bind-key "M-J" #'sp-join-sexp sp-keymap)
+              (bind-key "M-<up>" #'sp-splice-sexp-killing-backward sp-keymap)
+              (bind-key "M-<down>" #'sp-splice-sexp-killing-forward sp-keymap)
+              (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap)
+              (bind-key "C-S-<right>" #'sp-slurp-hybrid-sexp sp-keymap)
+              (sp-with-modes '(web-mode twig-mode)
+                (sp-local-pair "{%" "%}")
+                (sp-local-pair "{{" "}}"))
+              (show-smartparens-global-mode t)
+              (smartparens-global-strict-mode t)
+              (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode)))
 #+END_SRC
 
 ** move-text