Changing the default folder in Emacs

前端 未结 11 1003
不知归路
不知归路 2020-12-04 06:59

I am fairly new to Emacs and I have been trying to figure out how to change the default folder for C-x C-f on start-up. For instance when I first load Emacs and h

11条回答
  •  难免孤独
    2020-12-04 07:19

    I think the line you need to add to your .emacs is is

    (setq default-directory "C:/Documents and Settings/USER NAME/Desktop/" )
    

    Emacs will start in your desktop that way, unless you have a file open. It will usually start in the same directory as the file in your current buffer otherwise.

提交回复
热议问题