From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: Re: Re: R: WISH: separate org-mode customization file Date: Tue, 1 Jul 2008 16:26:21 -0400 Message-ID: <20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu> References: <1214914777.6519.132.camel@localhost.localdomain> <442673.75750.qm@web28308.mail.ukl.yahoo.com> <873amthd01.fsf@gollum.intra.norang.ca> <1214936469.6519.224.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDmqU-0006PR-MB for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 16:53:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDmqT-0006OP-6A for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 16:53:02 -0400 Received: from [199.232.76.173] (port=37434 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDmqS-0006OB-VZ for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 16:53:00 -0400 Received: from relay03.pair.com ([209.68.5.17]:1959) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KDmQr-0000i9-US for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 16:26:34 -0400 In-Reply-To: <1214936469.6519.224.camel@localhost.localdomain> 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 Cc: harri.kiiskinen@utu.fi Hi Harri -- > So I'm suggesting a new variable like 'org-custom-file' or something, > which is used to save only the customization for org-mode. Something > like Mew already does. I think this would be logical also, because > org-mode by definition has lots of customizations, which are not only > options affecting its behaviour on the current system, but are the > base for its use. To put it in other words, many of the other Emacs > modes function without any specific customizations, but org-mode is > hardly functional without your own tags, remember template > definitions, agenda file lists etc. In that sense, the customization > data is more closely linked to the actual org-files than than the > specific instance of Emacs on a particular system, and therefore it > would be logical to have it in a separate file. I should say that I'm not an emacs guru, and that there are likely others here who have a better way of doing this than what I'm about to suggest. But I did something like it a couple of years ago when I was running emacs on Linux at home and on Windows at work. I'm now on Linux both places, so I've moved on. I no longer have the config files I used, but I can still describe the basics of what I did: --I had a basic .emacs file that began by loading the .emacs config stuff common to both linux and windows. --.emacs then tested for the system name of the machine I was on (I think it was the variable "system-name"). If the name returned was that of the Windows machine, then .emacs loaded something like .emacs_windows. If it was the name of the linux machine, it loaded .emacs_linux. --As you'd guess, .emacs_windows included the system-specific emacs configuration for the windows machine. .emacs_linux included the system-specific information for the linux machine. --I still have my org-specific config stuff org-init.el. You could do that, and have it called next by .emacs. --I didn't do this, but you could set the customization variable so that customize settings are dropped into my.config.el. Your common .emacs file could load this file. Others might have a better way, but this worked fine for me as long as I was on the two different systems. Hope that helps. -- John Rakestraw