David Maus <dm...@ictsoc.de> writes:

>>Now I just have to find an easy way to delete all the :PROPERTIES blocks.
>
> This one should do the trick:
>
> (defun dmj:org:remove-empty-propert-drawers ()
>   "*Remove all empty property drawers in current file."
>   (interactive)
>   (unless (eq major-mode 'org-mode)
>     (error "You need to turn on Org mode for this function."))
>   (save-excursion
>     (goto-char (point-min))
>     (while (re-search-forward ":PROPERTIES:" nil t)
>       (save-excursion
>       (org-remove-empty-drawer-at "PROPERTIES" (match-beginning 0))))))

I added an entry about this in org-hacks.org - thanks!

-- 
 Bastien

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to