[Top][All Lists]

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

[Orgmode] Re: Excluding just heading from export

From: Paul Mead
Subject: [Orgmode] Re: Excluding just heading from export
Date: Sat, 06 Feb 2010 14:58:32 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Matt Lundin <address@hidden> writes:

> One hack would be to use an export hook to remove headings with a
> particular tag. E.g.,
> (defvar my-org-export-remove-heading-tag "killtag")
> (defun my-org-export-remove-headings-with-tag ()
>   (while (re-search-forward (concat ":" my-org-export-remove-heading-tag ":") 
> nil t)
>     (beginning-of-line)
>     (kill-line)))
> (add-hook 
>  'org-export-preprocess-after-tree-selection-hook 
>  'my-org-export-remove-headings-with-tag)
> Best,
> Matt
Thanks Matt, I'll give that a try and see if it does what I need.


reply via email to

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