From a3f03c9702fc7ff6c4cb0f5d2d5bb55550946e8d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 10 Jun 2016 14:06:07 -0700 Subject: [PATCH] Move smartparens out --- dotfiles/emacs.d/README.org | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 71384c67..3c19b43a 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1186,6 +1186,23 @@ I use helm for almost all emacs completion (cl-loop for package in imalison:packages-to-diminish do (diminish package)))) #+END_SRC +*** smartparens +#+BEGIN_SRC emacs-lisp + (use-package smartparens + :demand t + :bind (:map smartparens-mode-map + ("C-)" . sp-forward-slurp-sexp) + ("C-}" . sp-forward-barf-sexp) + ("C-(" . sp-backward-slurp-sexp) + ("C-{" . sp-backward-barf-sexp)) + :config + (progn + (require 'smartparens-config) + (smartparens-global-mode 1) + (sp-use-smartparens-bindings) + (unbind-key "C-" smartparens-mode-map) + (unbind-key "M-" smartparens-mode-map))) +#+END_SRC ** Major Modes *** python #+BEGIN_SRC emacs-lisp @@ -1604,21 +1621,6 @@ I use helm for almost all emacs completion (progn (setq paradox-execute-asynchronously t))) - (use-package smartparens - :demand t - :bind (:map smartparens-mode-map - ("C-)" . sp-forward-slurp-sexp) - ("C-}" . sp-forward-barf-sexp) - ("C-(" . sp-backward-slurp-sexp) - ("C-{" . sp-backward-barf-sexp)) - :config - (progn - (require 'smartparens-config) - (smartparens-global-mode 1) - (sp-use-smartparens-bindings) - (unbind-key "C-" smartparens-mode-map) - (unbind-key "M-" smartparens-mode-map))) - (use-package term :config (progn