From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Problem with agenda file list Date: Mon, 28 Apr 2008 06:12:34 +0200 Message-ID: <09565209-E73D-46B6-B04D-FABDA38B8174@science.uva.nl> References: <87fxt9ux7n.fsf@cantor.griswold.home> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqKjX-0004SF-N1 for emacs-orgmode@gnu.org; Mon, 28 Apr 2008 00:12:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqKjW-0004S2-2N for emacs-orgmode@gnu.org; Mon, 28 Apr 2008 00:12:54 -0400 Received: from [199.232.76.173] (port=37824 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqKjV-0004Rw-PZ for emacs-orgmode@gnu.org; Mon, 28 Apr 2008 00:12:53 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jose A. Ortega Ruiz" Cc: emacs-orgmode@gnu.org On Apr 27, 2008, at 10:11 PM, Jose A. Ortega Ruiz wrote: > > Hi Carsten, > > Carsten Dominik writes: > >> Hi Jose, >> >> in principle it would be possible, of course, to write a >> custom function that directly modifies a special Org >> configuration file. However, that is even less clean than >> what I was doing so far and is bound to cause problems. What >> if another person does *not* have a special file for Org? >> Should I then directly manipulate .emacs? I think this is >> not acceptable. >> > > I think we're misunderstanding each other :) What i really want is to > just set in my .emacs something along the lines of > > (setq org-agenda-files '("/home/jao/org/a.org" "home/jao/org/b.org")) > (require 'org-install) > > and be sure that org won't write any custom-set-variables or > custome-set-faces in my custom file. Hi Jose, you can do exactly what you did, and Org will normaly not write anything into your .emacs file. The only occasions are when you use one of the commands org-agenda-file-to-front bound to `C-c [' org-remove-file bound to `C-c ]' > Last time i tried doing that, > org-agenda-files appeared automagically in my custom-set-variables > section, together with a face definition for font-lock-warning in my > custom-set-faces... they were put in my .emacs, but i was using a > separate custom-file, so i just set and loaded custom-file before > loading org, and then org-agenda-files and font-lock-warning are > written > by org in my custom-file instead of .emacs. But since i'm setting > org-agenda-files in my .emacs, what i'd like is that it wouldn't > appear > in custom-set-variables. > > My understanding was that, in order to prevent this behaviour (that > is, > the automatic modification of custom-set-variables and -faces), my > only > option was to use the org files list file. Am i confused? I think you are. You must have called one of the above functions to make this saving happen. - Carsten