Move smartparens out

This commit is contained in:
Ivan Malison 2016-06-10 14:06:07 -07:00
parent 24e470636a
commit a3f03c9702

View File

@ -1186,6 +1186,23 @@ I use helm for almost all emacs completion
(cl-loop for package in imalison:packages-to-diminish (cl-loop for package in imalison:packages-to-diminish
do (diminish package)))) do (diminish package))))
#+END_SRC #+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-<backspace>" smartparens-mode-map)
(unbind-key "M-<backspace>" smartparens-mode-map)))
#+END_SRC
** Major Modes ** Major Modes
*** python *** python
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -1604,21 +1621,6 @@ I use helm for almost all emacs completion
(progn (progn
(setq paradox-execute-asynchronously t))) (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-<backspace>" smartparens-mode-map)
(unbind-key "M-<backspace>" smartparens-mode-map)))
(use-package term (use-package term
:config :config
(progn (progn