summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2014-06-28 20:19:19 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2014-06-28 20:19:19 (GMT)
commitb43998e615cfff774e8ebeb8499e96422458794a (patch)
treef9308588290ec2316714f472de6ee54078dc06ad
parentc78ec7ffcbda35eca20b55f882386324b2bf1164 (diff)
downloaddotemacs-b43998e615cfff774e8ebeb8499e96422458794a.zip
dotemacs-b43998e615cfff774e8ebeb8499e96422458794a.tar.gz
dotemacs-b43998e615cfff774e8ebeb8499e96422458794a.tar.bz2
More useful zap-to-char
-rw-r--r--ravi-init-appearance.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/ravi-init-appearance.el b/ravi-init-appearance.el
index 7e8d152..2147234 100644
--- a/ravi-init-appearance.el
+++ b/ravi-init-appearance.el
@@ -99,6 +99,11 @@
(bind-key "<return>" 'newline-and-indent prog-mode-map)
(bind-key "<return>" 'newline-and-indent emacs-lisp-mode-map)
+;; Zap up to char is more useful than zap-char
+(autoload 'zap-up-to-char "misc" "Kill up to, but not including ARGth occurrence of CHAR.")
+(bind-key "M-z" 'zap-up-to-char)
+(bind-key "M-Z" 'zap-to-char)
+
;; Automatic indentation of yanked text
(dolist (command '(yank yank-pop))
(eval `(defadvice ,command (after indent-region activate)