jschaf / esup

ESUP - Emacs Start Up Profiler
398 stars 22 forks source link

Symlinked init file #44

Open sho-87 opened 7 years ago

sho-87 commented 7 years ago

My emacs dir is c:\Users\Simon\.emacs.d

Inside is my .init.el file, however, it is symlinked to the actual file which is stored in my dropbox directory: d:\dropbox\emacs\.init.el

When I run esup I expect it to use my .emacs.d directory, and not my dropbox directory. However, when esup starts it is downloading all of the packages again to my dropbox dir, and I think its due to the symlink

The location of my user init file is correct (Simon\.emacs.d).

Is there any way to get esup to use the .emacs.d directory without following the symlink and downloading everything again to the dropbox dir?

My config is here if it helps

jschaf commented 7 years ago

Try this, you can pass in a file manually to have Emacs profile it.

(esup "c:/Users/Simon/.emacs.d/init.el")

By default, esup uses user-init-file. Emacs probably resolves the symlink to the dropbox folder on startup, so esup only ever sees the resolved file.

raxod502 commented 7 years ago

This is rather interesting since I also have an init.el file symlinked in from somewhere else, and have never experienced this sort of problem with esup. I bet it's a Windows-only issue (I use macOS) since symlinks are handled differently on Windows.