emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: charles snyder <clsnyder@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: one .emacs on multiple computers
Date: Wed, 12 May 2010 20:48:47 -0500	[thread overview]
Message-ID: <AANLkTilvG6pg_P1h7Epb98Bqld-uXXsiISAhaXSt1EBS@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1675 bytes --]

Hi

I find I am running org mode from a Dropbox folder (and my org files) from
several machines - a couple of windows computers at home and one at work,
and several Macs. I have modified my .emacs file(s) ala Bernt Hansen's and
others modifications. However, all of the computers (of course) have
different paths to the latest version of the orgmode files in Dropbox
folder, and to my personal orgmode files, for example:

link to org-mode6.35i ->
"C:/Users/clsnyder/My Documents/My Dropbox/emacs_org/org-mode6.35i/lisp"
;;Windows machine 1
"C:/Users/cls/My Documents/My Dropbox/emacs_org/org-mode6.35i/lisp"
;;Windows machine 2
"/Users/clsnyder/Dropbox/emacs_org/org-mode6.35i/lisp"    ;;Mac machine 1

link to my todo file (for example) ->
"C:/Users/clsnyder/My Documents/My Dropbox/emacs_org/personal.org"
"C:/Users/cls/My Documents/My Dropbox/emacs_org/personal.org"
"/Users/clsnyder/Dropbox/emacs_org/personal.org"


Can I just do something like:

(defvar cls-org-file "C:/Users/clsnyder/My Documents/My Dropbox/emacs_org/")
;; WINDOWS VERSION
(defvar cls-org-file "/Users/clsnyder/Dropbox/emacs_org/") ;; IMAC VERSION

and then in each of the various .emacs files on each of the machines, just
do something like this throughout the file:

(add-to-list 'load-path "cls-org-file" + org-mode6.35i/lisp" )
(add-to-list 'load-path "cls-org-file" + personal.org" )

I don't know the correct syntax, but I would like to simply define the path
variable in each .emacs file, and then I could basically have use the same
.emacs file everywhere, with just a few different lines at the start to
differentiate the individual machine's path.

Thanks in advance.

Charles Snyder


--

[-- Attachment #1.2: Type: text/html, Size: 2100 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2010-05-13  3:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  1:48 charles snyder [this message]
2010-05-13 12:37 ` one .emacs on multiple computers Jan Böcker
2010-05-13 13:34   ` Scot Becker
2010-05-13 15:32   ` charles snyder
2010-05-13 17:07     ` John Hendy

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=AANLkTilvG6pg_P1h7Epb98Bqld-uXXsiISAhaXSt1EBS@mail.gmail.com \
    --to=clsnyder@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).