help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: OS independent way to specify location of .emacs.d directory


From: Ludwig, Mark
Subject: RE: OS independent way to specify location of .emacs.d directory
Date: Thu, 4 Apr 2013 21:04:25 +0000

> From: Oleksandr Gavenko
> Sent: Thursday, April 04, 2013 3:56 PM
> 
> On 2013-04-04, Stefan Monnier wrote:
> 
> >> Is there way that specifies the path to the .emacs.d directory that
> >> works on Linux, Windows, and Mac?
> >
> > AFAIK "~/.emacs.d" should work.
> >
> I see many times such code:
> 
>   (expand-file-name "~/.emacs.d")

It is a little-known fact that the Windows kernel accepts forward slashes;
you can pass them to every API that takes a file path.  (You can pass 
path strings that mix forward and backward slashes.)

You can even use forward slashes as file path arguments to some external 
commands in command shells.  You can never use them in internal commands.

Cheers,
Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]