https://github.com/purcell/paredit-everywhere
Enable some paredit features in non-lisp buffers
https://github.com/purcell/paredit-everywhere
Last synced: 22 days ago
JSON representation
Enable some paredit features in non-lisp buffers
- Host: GitHub
- URL: https://github.com/purcell/paredit-everywhere
- Owner: purcell
- Created: 2013-04-30T09:49:01.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T07:26:55.000Z (6 months ago)
- Last Synced: 2025-03-25T03:35:02.946Z (about 1 month ago)
- Language: Emacs Lisp
- Size: 6.84 KB
- Stars: 40
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 C-h m to see which paredit commands are available.
[melpa]: http://melpa.org
[💝 Support this project and my other Open Source work via Patreon](https://www.patreon.com/sanityinc)
[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)
[✍ sanityinc.com](http://www.sanityinc.com/)