emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: charles snyder <clsnyder@gmail.com>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: one .emacs on multiple computers
Date: Thu, 13 May 2010 10:32:27 -0500	[thread overview]
Message-ID: <AANLkTimXqEAltHqGtkg29jJPhTAogU4KbcXHwfzK6aOM@mail.gmail.com> (raw)
In-Reply-To: <4BEBF278.30305@jboecker.de>


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

Thanks

- perfect

On Thu, May 13, 2010 at 7:37 AM, Jan Böcker <jan.boecker@jboecker.de> wrote:

> On 05/13/2010 03:48 AM, charles snyder wrote:
>
> > 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
> > <http://personal.org>" )
>
> Yes, that approach works.
>
> Create a directory for your org-mode configuration in your dropbox
> directory, say /path/to/dropbox/emacs-config/.
>
> Put the contents of your .emacs in, say, emacs-config/init.el.
>
> In the .emacs file on each machine, put:
>
> (setq cls/config-dir "/absolute/path/to/dropbox/emacs-config/")
> ; note the trailing slash!
> (load (concat cls/config-dir "init.el"))
>
>
> In init.el, set the `custom-file' variable to make the emacs customize
> interface store its data under the dropbox directory:
>
> (setq custom-file (concat cls/config-dir "customize.el"))
>
> Assuming your org-mode checkout is at emacs-config/org-mode6.35i, use
> (add-to-list 'load-path (concat cls/config-dir "org-mode6.35i/lisp"))
> (require 'org)
> ; other org-mode setup stuff
>
> If you want to have some machine-specific configuration, there is no
> need to use different files for different machines -- just check for the
> hostname.
>
> For example, I use org-mode on my laptop and my n900 smartphone, so my
> startup files include:
>
>  (setq jb/system
>        (cond ((string-match "N900" system-name) 'n900)
>              ((string-match "pythagoras" system-name) 'laptop)
>              (t 'unknown)))
>
> and later I can do:
>
> (when (eq jb/system 'n900)
>  (blink-cursor-mode 0))
>
> to disable blink-cursor-mode on the n900 to save battery power.
> (Emacs idle CPU usage with blink-cursor-mode: 1.5%. Without: 0% :) )
>
>
> Because the path to your org files is rather long, you also might be
> interested in this post, where Nathan Neff describes a way to easily
> define shortcuts to jump to frequently used files/headings:
> http://article.gmane.org/gmane.emacs.orgmode/25106/
>
> HTH, Jan
>



-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mercy Hospital
Kansas City, MO
www.clsnyder.com

[-- Attachment #1.2: Type: text/html, Size: 3447 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

  parent reply	other threads:[~2010-05-13 15:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=AANLkTimXqEAltHqGtkg29jJPhTAogU4KbcXHwfzK6aOM@mail.gmail.com \
    --to=clsnyder@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan.boecker@jboecker.de \
    /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).