R – how to setup common emacs environment for windows and linux computers

emacsenvironmentlinuxUbuntuwindows

I use emacs for text editing and script development. I use both windows and ubuntu emacs 23.1 distribution.

Now I want both my linux and windows environment to replicate the same environment.

  1. I will save my emacs environment here https://bitbucket.org/krish/emacs/, so file synchronisation will not be problem.

  2. I don't have any different resolution settings for both the envionment

  3. I use aspell which need specific path and different installer in windows and linux

  4. I use perl, python, ruby mode along with other html, css, js-2 and nxml

Are there any specific way/advise to manage the common emacs environment between windows and linux? especially how to manage the program path?

Best Answer

There's no real straightforward way. You'd have to isolate most (if not all) your platform specific routines into different files and load them up after checking for platform.

Steve Yegge has some information on how he manages his .emacs file along with the actual code itself over here. One of his points is how he keeps is cross platform hackable. It's worth a read.