How to set default working directory in Emacs - troubleshooting

后端 未结 7 1441
终归单人心
终归单人心 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:21

    The problem for me was the Initial Start Up Screen of emacs.

    It can be deactivated by:

    ;; no startup msg  
    (setq inhibit-startup-message t)
    

    It seems that the default welcome screen of emacs (with the tutorial links) forces you to start in your $HOME path.


    After that you can either cd or setq default-directory like so:

    (setq default-directory "~/")
    

    or

    (cd "~/")
    

提交回复
热议问题