Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomekw/doom-parents

A set of Doom Emacs mappings for manipulating parentheses and sexps
https://github.com/tomekw/doom-parents

doom-emacs emacs emacs-package

Last synced: 4 days ago
JSON representation

A set of Doom Emacs mappings for manipulating parentheses and sexps

Awesome Lists containing this project

README

        

# doom-parents
A set of Doom Emacs mappings for manipulating parentheses and sexps

## Installation

```lisp
;; ~/.doom.d/packages.el

(package! doom-parents
:recipe (:host github :repo "tomekw/doom-parents"))

;; ~/.doom.d/config.el

(use-package! doom-parents)
```

and then:

```shell
$ doom sync
```

## Usage

1. Wrap sexp in round parentheses

`SPC` - `c` -`p` - `(`

1. Wrap sexp in square parentheses

`SPC` - `c` -`p` - `[`

1. Wrap sexp in curly parentheses

`SPC` - `c` -`p` - `{`

1. Copy sexp

`SPC` - `c` -`p` - `y`

1. Kill sexp

`SPC` - `c` -`p` - `d`

1. Raise sexp

`SPC` - `c` -`p` - `r`

1. Push parenthesis to the right

`SPC` - `c` -`p` - `>` - `)`

1. Push parenthesis to the left

`SPC` - `c` -`p` - `<` - `(`

1. Pull parenthesis from the right

`SPC` - `c` -`p` - `<` - `)`

1. Pull parenthesis from the left

`SPC` - `c` -`p` - `>` - `(`