From mboxrd@z Thu Jan 1 00:00:00 1970 From: charles snyder Subject: one .emacs on multiple computers Date: Wed, 12 May 2010 20:48:47 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0297507394==" Return-path: Received: from [140.186.70.92] (port=41146 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCOuz-0008W1-Sc for emacs-orgmode@gnu.org; Wed, 12 May 2010 23:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCNXx-0003yS-9X for emacs-orgmode@gnu.org; Wed, 12 May 2010 21:49:11 -0400 Received: from mail-yw0-f197.google.com ([209.85.211.197]:61846) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCNXx-0003yH-6P for emacs-orgmode@gnu.org; Wed, 12 May 2010 21:49:09 -0400 Received: by ywh35 with SMTP id 35so445767ywh.24 for ; Wed, 12 May 2010 18:49:08 -0700 (PDT) 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 --===============0297507394== Content-Type: multipart/alternative; boundary=0016e68ee2bdd1c7e904866ff683 --0016e68ee2bdd1c7e904866ff683 Content-Type: text/plain; charset=ISO-8859-1 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 -- --0016e68ee2bdd1c7e904866ff683 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

I find I am running org mode from a Dropbox folder (and my org fi= les) 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 Hans= en's and others modifications. However, all of the computers (of course= ) have different paths to the latest version of the orgmode files in Dropbo= x 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" =A0=A0 ;;Windows machine 1
&q= uot;C:/Users/cls/My Documents/My Dropbox/emacs_org/org-mode6.35i/lisp"= =A0=A0=A0=A0 ;;Windows machine 2
"/Users/clsnyder/Dropbox/emacs_org/org-mode6.35i/lisp"=A0=A0=A0 ;= ;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/per= sonal.org"


Can I just do something like:

(defvar= cls-org-file "C:/Users/clsnyder/My Documents/My Dropbox/emacs_org/&qu= ot;) ;; WINDOWS VERSION
(defvar cls-org-file "/Users/clsnyder/Dropbox/emacs_org/") ;; IMA= C VERSION

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

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

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

Thanks in advance.

Charles Snyder


--
--0016e68ee2bdd1c7e904866ff683-- --===============0297507394== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0297507394==--