[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 36/77: New variable easy-kill-base-map for customising key bindin
From: |
Leo Liu |
Subject: |
[elpa] 36/77: New variable easy-kill-base-map for customising key bindings |
Date: |
Sat, 05 Apr 2014 04:08:17 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 92efe3031f68905613efff74c5813334366ac063
Author: Leo Liu <address@hidden>
Date: Thu Oct 10 20:27:32 2013 +0800
New variable easy-kill-base-map for customising key bindings
---
easy-kill.el | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index 552cb40..d92a64b 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -45,8 +45,11 @@ CHAR is used immediately following `easy-kill' to select
THING."
:type '(repeat (cons character symbol))
:group 'killing)
-(defun easy-kill-map ()
- "Build the keymap according to `easy-kill-alist'."
+(defface easy-kill-face '((t (:inherit 'secondary-selection)))
+ "Faced used to highlight kill candidate."
+ :group 'killing)
+
+(defvar easy-kill-base-map
(let ((map (make-sparse-keymap)))
(define-key map "-" 'easy-kill-shrink)
(define-key map "+" 'easy-kill-expand)
@@ -57,16 +60,18 @@ CHAR is used immediately following `easy-kill' to select
THING."
(mapc (lambda (d)
(define-key map (number-to-string d) 'easy-kill-digit-argument))
(number-sequence 0 9))
+ map))
+
+(defun easy-kill-map ()
+ "Build the keymap according to `easy-kill-alist'."
+ (let ((map (make-sparse-keymap)))
+ (set-keymap-parent map easy-kill-base-map)
(mapc (lambda (c)
;; (define-key map (vector meta-prefix-char c) 'easy-kill-select)
(define-key map (char-to-string c) 'easy-kill-thing))
(mapcar 'car easy-kill-alist))
map))
-(defface easy-kill-face '((t (:inherit 'secondary-selection)))
- "Faced used to highlight kill candidate."
- :group 'killing)
-
(defun easy-kill-message-nolog (format-string &rest args)
"Same as `message' except not writing to *Messages* buffer."
(let (message-log-max)
- [elpa] 25/77: Fix thinko in easy-kill-backward-down, (continued)
- [elpa] 25/77: Fix thinko in easy-kill-backward-down, Leo Liu, 2014/04/05
- [elpa] 21/77: New command easy-kill-mark-region, Leo Liu, 2014/04/05
- [elpa] 24/77: Improve list expand/shrink support in smie-based modes, Leo Liu, 2014/04/05
- [elpa] 18/77: Consolidate all kill features in easy-kill-thing, Leo Liu, 2014/04/05
- [elpa] 26/77: Fix #2: just call kill-ring-save when region is active, Leo Liu, 2014/04/05
- [elpa] 27/77: Declare dependency on emacs 24, Leo Liu, 2014/04/05
- [elpa] 29/77: Merge pull request #4 from purcell/patch-1, Leo Liu, 2014/04/05
- [elpa] 31/77: Simplify the interactive form of easy-kill-thing, Leo Liu, 2014/04/05
- [elpa] 28/77: [remap kill-ring-save] should be a better key binding for this feature., Leo Liu, 2014/04/05
- [elpa] 35/77: Doc fix and release v0.8.0, Leo Liu, 2014/04/05
- [elpa] 36/77: New variable easy-kill-base-map for customising key bindings,
Leo Liu <=
- [elpa] 33/77: Support append kill for append-next-kill and easy-kill, Leo Liu, 2014/04/05
- [elpa] 34/77: Better support for defining commands that exit easy-kill, Leo Liu, 2014/04/05
- [elpa] 30/77: Merge pull request #6 from knu/usage-remap, Leo Liu, 2014/04/05
- [elpa] 32/77: Improve easy-kill-bounds-of-list, Leo Liu, 2014/04/05
- [elpa] 37/77: Make easy-kill-backward-up work better when in strings, Leo Liu, 2014/04/05
- [elpa] 38/77: Fix #3: Add command easy-mark for marking, Leo Liu, 2014/04/05
- [elpa] 39/77: Fix doc and buglets in last change, Leo Liu, 2014/04/05
- [elpa] 40/77: Some improvements based on comments in #3, Leo Liu, 2014/04/05
- [elpa] 42/77: Must reference the actual object in easy-kill-candidate, Leo Liu, 2014/04/05
- [elpa] 43/77: Add new command easy-mark-sexp, Leo Liu, 2014/04/05