Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to make an html export of checkboxes lists with emacs with some sort of filter. For instance, I would like to export only the elements whose box is checked. How can this be achieved?

share|improve this question
up vote 1 down vote accepted

Add this hook:

(add-hook 'org-export-preprocess-hook
      (lambda() (goto-char (point-min))
        (delete-non-matching-lines "\[X\]\\|")))

Tick some checkboxes.

Create a list with one-line items in an .org file.

C-u C-c C-c on the first item of this list to add empty checkboxes to all items.

Put the list in an active region and do C-c C-e R.

share|improve this answer
    
This sounds great! How could I create a switch for this behaviour (something to be able to toggle the filter)? – Alfred M. May 2 '12 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .