From 0bc38971919973122e8776717b05f3f50574f294 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 26 Dec 2012 10:38:03 +0200 Subject: [PATCH] added an autoload and a keybinding for zap-up-to-char --- core/prelude-global-keybindings.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/prelude-global-keybindings.el b/core/prelude-global-keybindings.el index b04a539..fee0df7 100644 --- a/core/prelude-global-keybindings.el +++ b/core/prelude-global-keybindings.el @@ -68,6 +68,10 @@ ;; A complementary binding to the apropos-command (C-h a) (define-key 'help-command "A" 'apropos) +;; a complement to the zap-to-char command, that doesn't eat up the target character +(autoload 'zap-up-to-char "misc" "Kill up to, but not including ARGth occurrence of CHAR.") +(global-set-key (kbd "M-Z") 'zap-up-to-char) + ;; Activate occur easily inside isearch (define-key isearch-mode-map (kbd "C-o") (lambda () (interactive)