]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
bba-copy-org-src-block update
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 16 Dec 2016 11:04:26 +0000 (12:04 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 16 Dec 2016 11:04:26 +0000 (12:04 +0100)
- jump to first line of copied src block.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index eb4b55a2c40933c4028272b00b9b21609527a5be..395c79201289c5a0b20f1d80ea37221a19195963 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -985,6 +985,8 @@ This is helpful in training sessions.
     (set-mark-command '1)
     (set-mark-command '1)
     (yank)
+    (re-search-backward "\#\\+BEGIN_SRC")
+    (forward-line)
     )
 
   (define-key org-mode-map "\C-c\S-w" 'bba-copy-org-src-block)