[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Convert list to paragraph
From: |
Derek Thomas |
Subject: |
Re: [O] Convert list to paragraph |
Date: |
Sat, 27 Aug 2011 09:16:35 -0500 |
> Nick Dokos <address@hidden> writes:
>
>> (defun org-list-to-paragraph ()
>> "Convert the list at point into a paragraph."
>> (interactive)
>> (insert (org-list-to-generic (org-list-parse-list t) '(:ustart "" :splice
>> t :isep " " :nobr t ))))
>>
>>
>> (defun org-lists-to-paragraphs ()
>> (goto-char (point-min))
>> (condition-case nil
>> (while (org-list-search-forward "+ ")
>> (org-list-to-paragraph))
>> (error nil)))
>>
>> (add-hook 'org-export-preprocess-hook (function org-lists-to-paragraphs))
This looks like it will do what I want. Is there any way to restrict
this export option to certain org files? Thanks,
Derek