0

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

E:\emacs\org\index.org

What do I put in my init file?

2

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

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

1
  • 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 '16 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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