1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<a href="https://www.patreon.com/sanityinc"><img alt="Support me" src="https://img.shields.io/badge/Support%20Me-%F0%9F%92%97-ff69b4.svg"></a>
paredit-everywhere.el
=====================
It turns out that a lot of the `paredit` key bindings work as
expected in non-lisp buffers, since many major modes provide
reasonable sexp-oriented navigation.
This library, then, provides a minor mode which enables a subset
of the `paredit` library's editing commands in non-lisp buffers.
A grander project offering similar functionality is Matus Goljer's
[smartparens package](https://github.com/Fuco1/smartparens).
Installation
=============
If you choose not to use one of the convenient packages in
[MELPA][melpa], you'll need to add the
directory containing `paredit-everywhere.el` to your `load-path`, and then
`(require 'paredit-everywhere)`.
Usage
=====
Enable the minor mode in non-lisp buffers by adding `paredit-everywhere-mode` to
your mode hooks. In Emacs 24 and greater, `prog-mode-hook` is a great choice:
```elisp
(add-hook 'prog-mode-hook 'paredit-everywhere-mode)
```
Use <kbd>C-h m</kbd> to see which paredit commands are available.
[melpa]: http://melpa.org
<hr>
[Support this project and my other Open Source work](https://www.patreon.com/sanityinc)
[](http://uk.linkedin.com/in/stevepurcell)
[Steve Purcell's blog](http://www.sanityinc.com/) // [@sanityinc on Twitter](https://twitter.com/sanityinc)
|