Hi, I use org mode on two pc: - windows (from work) - Debian (at home) How can have just one .emacs/init.el file? I would store the file on a Dropbox folder that I access from both devices. Thank you Renato
On 1/18/14, 1:44 PM, Renato wrote: > Hi, > I use org mode on two pc: > - windows (from work) > - Debian (at home) > > How can have just one .emacs/init.el file? > > I would store the file on a Dropbox folder that I access from both > devices. > There are a few options, described in more detail here: http://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html You can set HOME to point to your Dropbox directory, or use the -u command line argument to start emacs with a different init file. Or you can put an init file on each machine that simple does (load "/My/Dropbox/folder/.emacs") -- ---- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
[-- Attachment #1: Type: text/plain, Size: 580 bytes --] On 1/18/14, 1:44 PM, Renato wrote: > Hi, > I use org mode on two pc: > - windows (from work) > - Debian (at home) > > How can have just one .emacs/init.el file? > > I would store the file on a Dropbox folder that I access from both > devices. > I have several machines and just one .emacs file in Dropbox. I use symbolic links to it in each computer in ~/.emacs From the terminal do: ln -s /path/to/your/Dropbox/.emacs ~/.emacs I assume windows works the same. If not then put in your windows .emacs a single line with: (load-file /path/to/your/Dropbox/.emacs) Best, Jorge. [-- Attachment #2: Type: text/html, Size: 776 bytes --]
"Jorge A. Alfaro Murillo" <jorge.a.alfaro@gmail.com> writes:
> On 1/18/14, 1:44 PM, Renato wrote:
>> Hi,
>> I use org mode on two pc:
>> - windows (from work)
>> - Debian (at home)
>>
>> How can have just one .emacs/init.el file?
>>
>> I would store the file on a Dropbox folder that I access from both
>> devices.
>>
>
> I have several machines and just one .emacs file in Dropbox. I use symbolic
> links to it in each computer in ~/.emacs
>
> From the terminal do:
> ln -s /path/to/your/Dropbox/.emacs ~/.emacs
>
> I assume windows works the same. If not then put in your windows .emacs a
> single line with:
>
> (load-file /path/to/your/Dropbox/.emacs)
>
> Best,
>
> Jorge.
That's exactly what I do as well. I have 1 .emacs.d folder, 1 .vimrc, 1 gnus
setup, all linked to my different machine home directories from my dropbox
folder.
Works great..
Dave