>"Nicolas Richard"
writes: > >> Barry OReilly writes: >>> Specifying a .emacs.d location as a command line flag would be a big >>> help. >> >> You could use apropos-value to list all variables which refer to >> .emacs.d and then modify those from command line using --eval (although >> sometimes that directory is hardcoded, e.g. in startup.el as a fallback >> value). In particular, user-emacs-directory is of interest, and I'd >> trying changing it, then run apropos-value to see what remains. > >`user-emacs-directory' is a defconst. I removed ~/.emacs.d, verified no ~/.emacs, executed: emacs --eval '(setq user-emacs-directory "my/path/.emacs.d/")' It did not work. More precisely, Emacs did not load my/path/.emacs.d/init.el . C-h v does show that user-emacs-directory has the /my/path/.emacs.d value, however.