Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example hook to evil-cleverparens layer doc #5569

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions layers/+vim/evil-cleverparens/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

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
the repository for more details. All the layer does right now is to add a hook
to load evil-cleverparens with emacs-lisp-mode.
the repository for more details.

* 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:
Then enable it in your =user-config= function and add your desired hooks, for example:

#+BEGIN_SRC emacs-lisp
(spacemacs/toggle-evil-cleverparens-on)
(add-hook 'clojure-mode-hook #'evil-cleverparens-mode)
#+END_SRC