Re: [O] Per-file attachment directories

2011-09-22 Thread Viktor Rosenfeld
Hi, putting the definition at the end of the file appears to work. At least for two org files of mine which didn't work before. But it's still a bug that definitions at the beginning are silently ignored for seemingly unrelated parts, isn't it? I'll post a bug report to the mailing list. Anyway,

Re: [O] Per-file attachment directories

2011-09-22 Thread Viktor Rosenfeld
Hi Nick, thanks for the info. That explains the weird behavior I noticed. I didn't know that local variables were a general Emacs feature. Cheers, Viktor Nick Dokos wrote: Darlan Cavalcante Moreira darc...@gmail.com wrote: I tested here and it didn't work for the bad files as you said.

[O] Per-file attachment directories

2011-09-21 Thread Viktor Rosenfeld
Hi everybody, so far I've only used one org file, but it's getting unwieldy and I've decided to split it up. I'd also like to split up my attachment directory to reduce clutter. For example, if I have two org files personal.org and work.org I would like attachments to go into automatically

Re: [O] Per-file attachment directories

2011-09-21 Thread Darlan Cavalcante Moreira
One way to do this is to use file variables to change the value of org-attach-directory. This works particularly well when you use just a few org files as in your case. For instance, you could put --8---cut here---start-8--- # Local Variables: #

Re: [O] Per-file attachment directories

2011-09-21 Thread Viktor Rosenfeld
Hi, this works for simple files but breaks silently for my org files. I've narrowed it down to two seemingly unrelated parts and attached two examples below. - good1.org contains an entry with two tables. When I visit the file, Emacs asks me to evaluate the local variable. In bad1.org the

Re: [O] Per-file attachment directories

2011-09-21 Thread Darlan Cavalcante Moreira
I tested here and it didn't work for the bad files as you said. However, putting the Local Variables at the end of the file worked. In fact, I have always written local variables like this at the end of the file, although I don't remember if this was because of a restriction of just because I'm