You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, lein.sh hardcodes~/.emacs.d in case any errors are reported by lein and puts an error file there. This seems like the wrong thing to do, as the user's config itself does not need to reside there. Judging from the mkdir -p ~/.emacs.d, that much is known. It can, however, result in extremely surprising behaviour, as Emacs still prefers those paths. By this I mean that even though one might use XDG-like conventions, the mere existence of a ~/.emacs.d directory will push Emacs towards using that as the place for the config—once hit by a lein error, the user will be greeting by a completely vanilla instance upon restart!
I guess one could do emacs --batch --eval "(princ user-emacs-directory)". I'm not sure how hacky this is (well, really I know :); either way, there is probably at least one good way to get the correct directory.
The text was updated successfully, but these errors were encountered:
Currently, lein.sh hardcodes
~/.emacs.d
in case any errors are reported bylein
and puts an error file there. This seems like the wrong thing to do, as the user's config itself does not need to reside there. Judging from themkdir -p ~/.emacs.d
, that much is known. It can, however, result in extremely surprising behaviour, as Emacs still prefers those paths. By this I mean that even though one might use XDG-like conventions, the mere existence of a~/.emacs.d
directory will push Emacs towards using that as the place for the config—once hit by alein
error, the user will be greeting by a completely vanilla instance upon restart!I guess one could do
emacs --batch --eval "(princ user-emacs-directory)"
. I'm not sure how hacky this is (well, really I know :); either way, there is probably at least one good way to get the correct directory.The text was updated successfully, but these errors were encountered: