This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+vim/evil-cleverparens/README.org

25 lines
845 B
Org Mode
Raw Normal View History

#+TITLE: Evil-Cleverparens layer
2015-08-24 23:32:31 +00:00
2016-03-31 02:59:55 +00:00
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#install][Install]]
2015-08-24 23:32:31 +00:00
* Description
This simple layer adds the [[https://github.com/luxbock/evil-cleverparens][evil-cleverparens]] package, which overrides common
normal-mode vim commands like D, dd, c, etc. to keep parentheses balanced. See
2016-03-23 04:31:55 +00:00
the repository for more details.
2015-08-24 23:32:31 +00:00
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =evil-cleverparens= to the existing =dotspacemacs-configuration-layers= list
in this file.
Then enable it in your =user-config= function and add your desired hooks, for
example:
#+BEGIN_SRC emacs-lisp
(spacemacs/toggle-evil-cleverparens-on)
2016-03-23 04:31:55 +00:00
(add-hook 'clojure-mode-hook #'evil-cleverparens-mode)
#+END_SRC