emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* one .emacs on multiple computers
@ 2010-05-13  1:48 charles snyder
  2010-05-13 12:37 ` Jan Böcker
  0 siblings, 1 reply; 5+ messages in thread
From: charles snyder @ 2010-05-13  1:48 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-13 17:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13  1:48 one .emacs on multiple computers charles snyder
2010-05-13 12:37 ` Jan Böcker
2010-05-13 13:34   ` Scot Becker
2010-05-13 15:32   ` charles snyder
2010-05-13 17:07     ` John Hendy

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).