From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jose A. Ortega Ruiz" Subject: Re: Problem with agenda file list Date: Sun, 27 Apr 2008 22:11:51 +0200 Message-ID: References: <87fxt9ux7n.fsf@cantor.griswold.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqE6v-0003iv-Te for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 17:08:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqE6u-0003iM-GW for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 17:08:37 -0400 Received: from [199.232.76.173] (port=45698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqE6u-0003iJ-Ar for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 17:08:36 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JqE6t-0007TW-OM for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 17:08:36 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JqE6l-00011p-Ne for emacs-orgmode@gnu.org; Sun, 27 Apr 2008 21:08:27 +0000 Received: from 84-75-99-141.dclient.hispeed.ch ([84.75.99.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 21:08:27 +0000 Received: from jao by 84-75-99-141.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 21:08:27 +0000 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: emacs-orgmode@gnu.org 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. 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? Thanks! jao > There is of course, a simple solution for you: Set the value > of org-agenda-files with a lisp setq form in .emacs, and never use > `C-c [' and `C-c ]' to modify the list. If you want to be sure, > disable these functions with `disable-command'. >