README.md 1.34 KB
Newer Older
1 2 3
# Zzz to Char

[![License GPL 3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.txt)
4
[![MELPA](https://melpa.org/packages/zzz-to-char-badge.svg)](https://melpa.org/#/zzz-to-char)
5 6 7 8 9 10 11
[![Build Status](https://travis-ci.org/mrkkrp/zzz-to-char.svg?branch=master)](https://travis-ci.org/mrkkrp/zzz-to-char)

This package provides two new commands: `zzz-to-char` and `zzz-up-to-char`
which work like built-ins `zap-to-char` and `zap-up-to-char`, but allow you
quickly select exact character you want to “zzz” to.

The commands are minimalistic and often work like built-in ones when there
12 13 14
is only one occurrence of the target character (except they automatically
work in backward direction too). You can also specify how many characters to
scan from each side of point, see `zzz-to-char-reach`.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

## Installation

Download this package and place it somewhere, so Emacs can see it. Then put
`(require 'zzz-to-char)` into your configuration file. Done!

To install the package via MELPA, execute: <kbd>M-x package-install RET
zzz-to-char RET</kbd>.

## Usage

Just bind `zzz-to-char` or `zzz-up-to-char` (depends on your taste, the
latter doesn't include target char into killed text):

```emacs-lisp
(global-set-key (kbd "M-z") #'zzz-to-char)
```

## License

35
Copyright © 2015–2017 Mark Karpov
36 37

Distributed under GNU GPL, version 3.