Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.