You didn't say so, but it sounds like you're starting Emacs from a Windows shortcut.
The directory that you see with c-x c-f is the cwd, in Emacs terms, the default-directory
(a variable).
When you start Emacs using an MS Windows shortcut, the default-directory
is initially the folder (directory) specified in the "Start In" field of the shortcut properties. Right click the shortcut, select Properties
, and type the path to your desktop in the Start In
field.
If you're using Emacs from the command line, default-directory
starts as the directory where you started Emacs (the cwd).
This approach is better than editing your .emacs file, since it will allow you to have more than one shortcuts with more than one starting directory, and it lets you have the normal command line behavior of Emacs if you need it.
CWD = current working directory = PWD = present working directory. It makes a lot more sense at the command line than in a GUI.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…