Add function to put ids on every heading in an Org file
This commit is contained in:
parent
de348156e0
commit
a77a4549a1
@ -1390,6 +1390,17 @@ Always open directory links in Emacs instead of Finder:
|
||||
(add-to-list 'org-file-apps '(directory . emacs)))
|
||||
#+END_SRC
|
||||
|
||||
A function to add ids to every heading in an Org file:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun org-get-create-ids-all ()
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(goto-char (point-max))
|
||||
(while (outline-previous-heading)
|
||||
(org-id-get-create))))
|
||||
#+END_SRC
|
||||
|
||||
|
||||
** Agenda files
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun agenda-files (&optional file)
|
||||
|
Loading…
Reference in New Issue
Block a user