emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Rakestraw <lists@johnrakestraw.com>
To: emacs-orgmode@gnu.org
Cc: harri.kiiskinen@utu.fi
Subject: Re: Re: R: WISH: separate org-mode customization file
Date: Tue, 1 Jul 2008 16:26:21 -0400	[thread overview]
Message-ID: <20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu> (raw)
In-Reply-To: <1214936469.6519.224.camel@localhost.localdomain>

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

  reply	other threads:[~2008-07-01 20:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 12:19 WISH: separate org-mode customization file Harri Kiiskinen
2008-07-01 12:30 ` R: " Giovanni Ridolfi
2008-07-01 14:19   ` Manish
2008-07-01 14:53     ` Bernt Hansen
2008-07-01 18:21       ` Harri Kiiskinen
2008-07-01 20:26         ` John Rakestraw [this message]
2008-07-02  2:08           ` Sebastian Rose
2008-07-02 21:50         ` Eddward DeVilla
2008-07-02 22:14           ` Tim O'Callaghan
2008-07-04 11:57           ` Harri Kiiskinen
2008-07-01 15:04     ` Giovanni Ridolfi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu \
    --to=lists@johnrakestraw.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=harri.kiiskinen@utu.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).