From a8316761c256035026fcdb7968453aa78c3a264f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 30 Oct 2015 15:17:38 +0100 Subject: Emacs: Require correct package for smartparens --- tag-emacs/emacs.d/init.org | 47 +++++++++++++++++++++++----------------------- 1 file 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-" #'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-" #'sp-splice-sexp-killing-backward sp-keymap) - (bind-key "M-" #'sp-splice-sexp-killing-forward sp-keymap) - (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap) - (bind-key "C-S-" #'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-" #'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-" #'sp-splice-sexp-killing-backward sp-keymap) + (bind-key "M-" #'sp-splice-sexp-killing-forward sp-keymap) + (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap) + (bind-key "C-S-" #'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 -- cgit 1.4.1