[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark e7c06926b1 1/2: Position point at end of target
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark e7c06926b1 1/2: Position point at end of target before embark-insert |
Date: |
Mon, 13 Mar 2023 15:57:44 -0400 (EDT) |
branch: externals/embark
commit e7c06926b1f7b5b07ab0e1ee7dfb5747fd0ddc5c
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Position point at end of target before embark-insert
embark-insert can be use in regular buffers to duplicate a target,
with this pre-action hook you don't need to be at an endpoint of the
target before running embark-insert. (I've never wanted to insert the
duplicate in the middle of the target!)
---
embark.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/embark.el b/embark.el
index cc33cfa0ed..6838b32f8f 100644
--- a/embark.el
+++ b/embark.el
@@ -387,6 +387,7 @@ the key :always are executed always."
(forward-sentence embark--end-of-target)
(backward-sentence embark--beginning-of-target)
(backward-paragraph embark--beginning-of-target)
+ (embark-insert embark--end-of-target)
;; commands we want to be able to jump back from
;; (embark-find-definition achieves this by calling
;; xref-find-definitions which pushes the markers itself)