How to set default working directory in Emacs - troubleshooting

后端 未结 7 1629
终归单人心
终归单人心 2020-12-25 13:34

I know this has been posted many times, but the solutions are not working for me. I\'ve tried the following solutions from this post (Changing the default folder in Emacs):<

7条回答
  •  难免孤独
    2020-12-25 14:19

    I just tested and it behaved fine with regards to Default-Directory. My settings are as follows:

    emacs.exe in c:\bin\emacs\bin

    %PATH% includes c:\bin\emacs\bin\

    %HOME% set to %USERPROFILE (C:\Users\)

    Direct from Run-box

    Win+remacs -qRET

    (message "%s" default-directory) => "C:\Users\jonpe/"

    From cmd.exe after changing directory

    Win+rcmdRET

    cd c:\users\publicRET

    emacs -qRET

    (message "%s" default-directory) => "C:\Users\Public/"

    Do you have emacs added to your %PATH% variable?

    If I try to launch emacs by browsing to it's location then launching the default directory is set to the executable location.

提交回复
热议问题