Diminish smartparens-mode and reindent its config

This commit is contained in:
Ivan Malison 2016-06-20 13:06:11 -07:00
parent f8ec571425
commit be846bad55

View File

@ -1674,19 +1674,20 @@ I use helm for almost all emacs completion
*** smartparens *** smartparens
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package smartparens (use-package smartparens
:demand t :demand t
:bind (:map smartparens-mode-map :diminish smartparens-mode
("C-)" . sp-forward-slurp-sexp) :bind (:map smartparens-mode-map
("C-}" . sp-forward-barf-sexp) ("C-)" . sp-forward-slurp-sexp)
("C-(" . sp-backward-slurp-sexp) ("C-}" . sp-forward-barf-sexp)
("C-{" . sp-backward-barf-sexp)) ("C-(" . sp-backward-slurp-sexp)
:config ("C-{" . sp-backward-barf-sexp))
(progn :config
(require 'smartparens-config) (progn
(smartparens-global-mode 1) (require 'smartparens-config)
(sp-use-smartparens-bindings) (smartparens-global-mode 1)
(unbind-key "C-<backspace>" smartparens-mode-map) (sp-use-smartparens-bindings)
(unbind-key "M-<backspace>" smartparens-mode-map))) (unbind-key "C-<backspace>" smartparens-mode-map)
(unbind-key "M-<backspace>" smartparens-mode-map)))
#+END_SRC #+END_SRC
*** multiple-cursors *** multiple-cursors
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp