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