aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 24e85340a305821bc6a82bea2cc4c88d60cb0028 (plain)
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
# siege-mode
An emacs minor mode to surround the region with smart delimiters
interactively.

## Lay siege to the region from all sides!
### (with the power of regular expressions)

When the region is active, all input is redirected to the minibuffer
and treated as a delimiter for the region. By default the input is
used as the left delimiter from which the right one is derived using
`siege-left-to-right-regexs`. This may be reversed by default
(`siege-default-left`) or during usage via "C-c r" in the minibuffer.
If regexes are not desired they may be disabled via "C-c a" in the
minibuffer or by default (`siege-default-apply-regexs`).

All changes are dynamically displayed in the buffer (see
`siege-preview-face`) and may be committed by "SPC" or "Ret" in the
minibuffer.

The defaults support the obvious pairings, as well as `begin <--> end`
and `left <--> right` of LaTeX fame.

## Fancy GIF demo
Accepting donations.

## License

GPL v3 or later.