[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/objed 1652f3b 10/16: Add two new entry commands (for ob
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/objed 1652f3b 10/16: Add two new entry commands (for object-at-point) |
Date: |
Mon, 4 Feb 2019 07:46:31 -0500 (EST) |
branch: externals/objed
commit 1652f3b0f794d1b1fd6949c37c60f3a18c220983
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Add two new entry commands (for object-at-point)
---
objed.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/objed.el b/objed.el
index 47647d7..e7f6499 100644
--- a/objed.el
+++ b/objed.el
@@ -1732,6 +1732,19 @@ If called from code decide for activation with char
object using
(when (objed-init-p)
(objed--init (or obj 'char)))))
+;;;###autoload
+(defun objed-beg-of-object-at-point ()
+ "Activate and move to beginning of object at point."
+ (interactive)
+ (objed--init 'char)
+ (objed-current-or-previous-context))
+
+;;;###autoload
+(defun objed-end-of-object-at-point ()
+ "Activate and move to end of object at point."
+ (interactive)
+ (objed--init 'char)
+ (objed-current-or-next-context))
(defun objed-toggle-side ()
"Move to other side of object.
@@ -3112,6 +3125,8 @@ whitespace they build a sequence."
(defvar objed-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "M-SPC") 'objed-activate)
+ (define-key map (kbd "M-[") 'objed-beg-of-object-at-point)
+ (define-key map (kbd "M-]") 'objed-end-of-object-at-point)
map)
"Keymap for /function`objed-mode'.")
- [elpa] externals/objed 6685081 01/16: Don't throw an error with elisp defun object if not inside a defun, (continued)
- [elpa] externals/objed 6685081 01/16: Don't throw an error with elisp defun object if not inside a defun, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed b98e4be 02/16: Add melpa stable badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed e809d3f 03/16: Add Elpa badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 3a26da6 04/16: Change elpa badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 4c4ab09 06/16: Add objed-activate example, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed d2fdbe0 05/16: Switch badge order to elpa, melpa stable, melpa, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed a6cebcc 07/16: Mention actual command names to move to prev/next identifier, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed c54c8b3 16/16: Version bump, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed e427899 12/16: Get context object when acting on sexp object (toggle state etc.), Clemens Radermacher, 2019/02/04
- [elpa] externals/objed f28ee01 11/16: Improve sexp object/movement again, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 1652f3b 10/16: Add two new entry commands (for object-at-point),
Clemens Radermacher <=
- [elpa] externals/objed 83d4968 09/16: Improves sexp object/movement, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 54a02c0 13/16: Toggle extend on repeat, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 589d763 14/16: Update desciptions, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 0bfdb3c 15/16: Changing key binding policy, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 4527af4 08/16: Replace character based movement with sexp movement commands, Clemens Radermacher, 2019/02/04