How to open files automatically when starting emacs?

后端 未结 4 746
再見小時候
再見小時候 2021-01-30 07:08

A newbie question and probably very bingable (had to use that word once :-)), but as I gather thats both ok for SO : How can you get files to open automatically when st

4条回答
  •  无人及你
    2021-01-30 07:43

    C-h b 
    

    This opens the help showing the correspondence between key-bindings and elisp functions. Look for

    C-x C-f 
    

    in it (you can do it by typing C-s C - x space C - f), you find find-file. Now, do

    C-h f find-file
    

    and it tells you, among other things, the syntax :

    (find-file FILENAME &optional WILDCARDS)
    

    So just try

    (find-file "/path/to/your/file") 
    

    in your .emacs

提交回复
热议问题