|
From: | Bastien |
Subject: | Re: [Orgmode] Why :ID: properties? |
Date: | Sun, 19 Sep 2010 23:49:22 +0200 |
User-agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
David Maus <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |