[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: easy-kill: drop-in replacement for kill-ring-save
From: |
Leo Liu |
Subject: |
Re: easy-kill: drop-in replacement for kill-ring-save |
Date: |
Sun, 19 Jan 2014 16:05:20 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1) |
On 2014-01-19 12:05 +0800, Darren Hoo wrote:
> some suggestions:
Thanks.
> 1. when unbound keys being pressed, doing a quit(maybe shown on the
> echo area) instead of doing a self-insert? For example, when M-w a is
> pressed, just quit easy-kill and not insert 'a'.
You can get close to what you want by:
(define-key easy-kill-base-map [remap self-insert-command] 'easy-kill-exit)
(put 'easy-kill-exit 'easy-kill-exit t)
(defun easy-kill-exit ()
(interactive)
'ignore))
One common use pattern is M-w and then move around to place the copied
text, which should silently exit easy-kill. Most keys should not be
intercept by easy-kill.
> 2. About extend/shrink, can <up> <down> <left> <right> be bounded too,
> these are more intuitive to me than +/-.
You could add these keys to easy-kill-base-map.
Leo