[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 43/77: Add new command easy-mark-sexp
From: |
Leo Liu |
Subject: |
[elpa] 43/77: Add new command easy-mark-sexp |
Date: |
Sat, 05 Apr 2014 04:08:20 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 44cb970ee71ec8852dd1c178b5d43d516ebbba29
Author: Leo Liu <address@hidden>
Date: Sat Oct 12 12:30:11 2013 +0800
Add new command easy-mark-sexp
---
easy-kill.el | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index 286d138..7523844 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -317,6 +317,15 @@ Temporally activate additional key bindings as follows:
(easy-kill-init-candidate n)
(easy-kill-activate-keymap))
+;;;###autoload
+(defun easy-mark-sexp (&optional n)
+ (interactive "p")
+ (let ((easy-kill-try-things '(sexp)))
+ (easy-mark n)
+ (unless (overlay-get easy-kill-candidate 'thing)
+ (overlay-put easy-kill-candidate 'thing 'sexp)
+ (easy-kill-thing 'sexp n))))
+
;;; Extended things
(defun easy-kill-on-buffer-file-name (n)
- [elpa] 36/77: New variable easy-kill-base-map for customising key bindings, (continued)
- [elpa] 36/77: New variable easy-kill-base-map for customising key bindings, Leo Liu, 2014/04/05
- [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 <=
- [elpa] 41/77: Tell easy-kill-append to deactivate-mark, Leo Liu, 2014/04/05
- [elpa] 44/77: Fix #7: Add new command easy-kill-abort for key C-g, Leo Liu, 2014/04/05
- [elpa] 45/77: Better origin indicator by easy-kill-indicate-origin, Leo Liu, 2014/04/05
- [elpa] 46/77: Teach easy-kill-abort to deactivate mark immediately, Leo Liu, 2014/04/05
- [elpa] 47/77: Doc fix and small tweaks, Leo Liu, 2014/04/05
- [elpa] 49/77: Work with `sexp' and `list' in nxml mode, Leo Liu, 2014/04/05
- [elpa] 52/77: Use filter-buffer-substring, Leo Liu, 2014/04/05
- [elpa] 51/77: Fix quoting error in face definitions, Leo Liu, 2014/04/05
- [elpa] 50/77: Fix last change to easy-kill-backward-up, Leo Liu, 2014/04/05
- [elpa] 55/77: Fix easy-kill-backward-down to handle prefix chars, Leo Liu, 2014/04/05