I want this file to show up in a buffer when I start emacs:


What do I put in my init file?

1 Answer 1


(find-file "E:/emacs/org/index.org")

Windows accepts both forward and backward slashes. I prefer forward slashes as they do not need escaping.

  • Double backslashes are necessary on Windows, otherwise Emacs will treat them as escape characters. Both double backslashes and single forward slashes work (and can be mixed in the same file path), but not single backslashes.
    – JCC
    Sep 27, 2016 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.