emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] function to duplicate current header and change ID


From: Xebar Saram
Subject: Re: [O] function to duplicate current header and change ID
Date: Thu, 11 Aug 2016 14:22:31 +0300

ok so i have this so far


(defun zxx  ()
  "duplicate and change id of org header"
(interactive)
(org-copy-subtree)
(org-end-of-line) 
(newline)
;(org-yank)
(org-paste-subtree)
(org-forward-heading-same-level 1)  
(let ((current-prefix-arg '(4)))             
(call-interactively #'org-id-get-create))
)


yet it seems very bloated since i cant code ;-) and dosent work as it dosent really creates a new org-id. any tips?

best

Z


On Wed, Aug 3, 2016 at 7:17 AM, Xebar Saram <address@hidden> wrote:
1. copy current header and contents (org-copy-subtree) at point
2. auto paste it below current header
3. change ID 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]