I guess the real quesion is : how to evaluate a file via it’s url?
Of course it wouldn’t be the actual .emacs file, but it it would serve that purpose, so you can run your personal settings on any PC that has emacs installed.
I’m aware of the fact that loading a buffer in certain situations (mainly ‘toggling stuff) is not the same as evaluating a buffer afterwards, but that’s OK.
browse-url-emacsfrom the standardurllibrary makes this simple. It displays the resulting buffer, which you probably don’t want in this case, but we can wrap it withsave-window-excursionto circumvent that issue.or with some rudimentary error handling: