Skip to content

mrkkrp/zzz-to-char

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Zzz to Char

License GPL 3 MELPA CI

This package provides two new commands: zzz-to-char and zzz-up-to-char which work like the built-ins zap-to-char and zap-up-to-char, but allow the user to quickly select the exact character they want to zzz to. The commands work like the built-ins when there is only one occurrence of the target character, excepting that they automatically work in the backward direction, too. One can specify how many characters to scan from each side of the point, see zzz-to-char-reach.

Installation

The package is available via MELPA, so you can just type M-x package-install RET zzz-to-char RET.

If you would like to install the package manually, download or clone it and put on Emacs' load-path. Then you can require it in your init file like this:

(require 'zzz-to-char)

Usage

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

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

License

Copyright © 2015–present Mark Karpov

Distributed under GNU GPL, version 3.