emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Org-publish - too many index.org files


From: Matthew Lundin
Subject: Re: [Orgmode] Org-publish - too many index.org files
Date: Sun, 02 Nov 2008 09:54:52 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin)

Hi Carsten,

Yes, I can confirm that turning off auto index resulted in the buffers
being closed after publishing.

Thanks,
Matt


Carsten Dominik <address@hidden> writes:

> Hi Matthew,
>
> if you turn off the auto-index, do the buffers then disappear?
>
> Thanks for checking this out.
>
> - Carsten
>
> On Nov 2, 2008, at 1:50 PM, Matthew Lundin wrote:
>
>>
>> Hi Carsten,
>>
>> Carsten Dominik <address@hidden> writes:
>>
>>> Hi Matthew,
>>>
>>> what org version are you using?
>>>
>>> Because I believe that in the current version, those buffers will be
>>> killed, if they have been visited to get published.  Only buffers
>>> which are already present  then starting the publishing will not be
>>> killed.
>>>
>>> At least this is how it should work.
>>
>> I am using Org-mode 6.10c. I just did a test. I started up emacs with
>> no file buffers loaded. I then ran M-x org-publish RET project-name.
>> After the project was published, my buffer menu contained all the org
>> files in the project.
>>
>> Here is my org-publish-project-alist configuration:
>>
>> (setq org-publish-project-alist
>>      '(
>>      ("org-notes"
>>       :base-directory "~/mystuff/website/"
>>       :base-extension "org"
>>       :publishing-directory "[ssh to my site here]"
>>       :section-numbers nil
>>       :email "[my email address here]"
>>       :publishing-function org-publish-org-to-html
>>       :recursive t
>>       :auto-index t
>>       :style "<link rel=\"stylesheet\" type=\"text/css\"
>> href=\"css/ myorg.css\" />"
>>       :preamble "<div id=\"menu\">
>> <ul>
>> <li> <a href=\"index.html\">Home</a> </li>
>> <li> <a href=\"sitemap.html\">Site Map</a> </li>
>> <li> <a id=\"ie\" href=\"#\">Top of Page</a> </li>
>> </ul>
>> </div>"
>>       :index-filename "pagelist.org"
>>       :index-title "Page List"
>>       :link-validation-function org-publish-validate-link
>>       )
>>      ("org-static"
>>       :base-directory "~/mystuff/website/"
>>       :publishing-directory "[ssh to my site here]"
>>       :recursive t
>>       :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>>       :publishing-function org-publish-attachment
>>       )
>>      ("org"
>>       :components
>>       ("org-notes" "org-static"))
>>      ))
>>
>> My apologies in advance if I goofed something up in the configuration.
>>
>> Thanks,
>> Matt
>>
>>
>>> On Oct 30, 2008, at 4:04 PM, Matthew Lundin wrote:
>>>
>>>>
>>>> I am setting up my website with multiple subdirectories, each, of
>>>> course, with its own index.org (index.html) file.
>>>>
>>>> A problem arises when I invoke org-publish (or org-agenda). All of
>>>> the
>>>> org files in the project are loaded into buffers resulting in too
>>>> many
>>>> index.org files in my buffer list.
>>>>
>>>> 1) Is there any way to have org-publish close buffers after
>>>> publishing
>>>> the files?
>>>>
>>>> 2) Alternatively, is there an easy way to rename the buffers to the
>>>> title of the page designated with #+TITLE so that they can be told
>>>> apart in the buffer list.
>>>>
>>>> ----
>>>>
>>>> Finally, on a related question. Does someone know an easy way to
>>>> have
>>>> all the org-files of subdirectories of a website added to the agenda
>>>> files recursively?
>>>>
>>>> For my agenda files I currently use:
>>>>
>>>> (setq org-agenda-files (file-expand-wildcards "~/org/*org"))
>>>>
>>>> That, however, only works for a single directory, not recursively.
>>>>
>>>> Thanks!
>>>>
>>>> Matt Lundin
>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Remember: use `Reply All' to send replies to the list.
>>>> address@hidden
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

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