portable emacs? (emacs server not working)

Posted by polyglot on Stack Overflow See other posts from Stack Overflow or by polyglot
Published on 2008-12-11T14:20:48Z Indexed on 2010/06/16 14:32 UTC
Read the original article Hit count: 716

Filed under:
|

I have seen a few suggestions on making emacs portable (on Windows). I have this in my site-start.el:

(defvar program-dir (substring data-directory 0 -4))

(setq inhibit-startup-message t)
(setenv "HOME" program-dir)

I changed the HOME variable so that not only my .emacs init files (and other init files) are read, but everything generated by emacs will stay in the program directory, not needing me to specify the path for everything one by one.

Well this works well but the emacs server is not working; I get error message "no connection could be made because target machine actively refused it." If I don't change my HOME var then emacs server works. Is there way to fix this?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about portable