How to load file into buffer and switch to buffer on start up in Emacs

后端 未结 1 1628
予麋鹿
予麋鹿 2021-02-04 01:08

I have a TODO file that I load emacs up to use 90% of the time. When I load emacs though it defaults to loading the scratch buffer. I would like it to load the TODO file initial

相关标签:
1条回答
  • 2021-02-04 01:34

    In your startup file, you have this line:

    '(initial-buffer-choice t))
    

    as part of your "custom-set-variables" command. The documentation string for "initial-buffer-choice" is:

    Buffer to show after starting Emacs. If the value is nil and inhibit-startup-screen' is nil, show the startup screen. If the value is string, visit the specified file or directory using find-file'. If t, open the `scratch' buffer.

    So, the value that you've specified ('t') is causing the *scratch* buffer to be displayed after startup. Change this line to the following and your issue should be resolved:

    '(initial-buffer-choice "c:/Users/Seb/Documents/Emacs/TODO_List.org"))
    
    0 讨论(0)
提交回复
热议问题