How to set default working directory in Emacs - troubleshooting

后端 未结 7 1583
终归单人心
终归单人心 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条回答
  •  梦毁少年i
    2020-12-25 14:11

    Set your default-directory last in your init file, if you expect that setting to be useful after the init file is loaded.

    If you also need it set earlier in the init file (e.g., so that some of your init-file code gets the right value) , then set it earlier too. When you do stuff in your init file, that stuff can change the variable value.

    You can also use (setq-default default-directory "C:/Documents and Settings/USER NAME/Desktop/") (or whatever the directory name is), if you want that to be the default for every buffer.

提交回复
热议问题