diff options
author | Alan Pearce | 2015-10-30 15:17:38 +0100 |
---|---|---|
committer | Alan Pearce | 2015-10-30 15:17:38 +0100 |
commit | a8316761c256035026fcdb7968453aa78c3a264f (patch) | |
tree | d2fe813cf0a65e46e12137da54b4098236ad5a0a | |
parent | 1c9822dfbc9d0e855f99235c627d645ba46484d7 (diff) | |
download | dotfiles-a8316761c256035026fcdb7968453aa78c3a264f.tar.lz dotfiles-a8316761c256035026fcdb7968453aa78c3a264f.tar.zst dotfiles-a8316761c256035026fcdb7968453aa78c3a264f.zip |
Emacs: Require correct package for smartparens
-rw-r--r-- | tag-emacs/emacs.d/init.org | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 981e914..8d82022 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 |