From e8052339c8eac32bfbdc49c56865eff9cf904299 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 13 Jun 2016 10:52:51 -0700 Subject: [PATCH] readd smartparens --- dotfiles/emacs.d/README.org | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index d8040f23..ee3fde56 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -782,6 +782,24 @@ I use helm for almost all emacs completion ("M-g l" . avy-goto-line) ("C-'" . avy-goto-char-2))) #+END_SRC +** Text Manipulation +*** 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 ** Non-Programming *** org #+BEGIN_SRC emacs-lisp @@ -2431,7 +2449,6 @@ Go the other way when you use capital O. (bind-key "C-x O" (lambda () (interactive) (other-window -1))) #+END_SRC - #+BEGIN_SRC emacs-lisp (bind-key "M-q" 'fill-or-unfill-paragraph) (bind-key "C-c SPC" 'imalison:mark-ring)