I have read the guide found here:
How Emacs Finds Your Init File
I cannot find any .emacs
directory in my home directory. I have show hidden files
selected. I also cannot find the init.el
file in Emacs home directory.
Since I have been unable to find the init.el
file, is it reasonable to think there isn't one?
I am using Emacs 27.1 on Windows 10. Except for Emacs home directory I installed with the defaults. I used no command-line options during install.
I seem to remember I have once read a post which explained Emacs has an internal variable which is used to hold the value of the location of where Emacs found the init.el
file after it starts, but after searches I have been unable to find what that variable is.
How can I find my init.el
file, having failed to locate it in the locations mentioned in the manual?
Does a variable exist which says where the init.el
file was found? If so, what is it?
.emacs
directory (AFAIK there can be a.emacs
file or a.emacs.d
directory, but I've never heard of a.emacs
directory). Similarly clarify what you mean by "Emacs home directory".C-h v
and thenuser-init-file
will show you what your current user init file is.emacs
file in there. So in Windows ~ usually meanss %APPDATA%. In a windows cmd prompt docd %APPDATA%
. You will most likely find your.emacs
file in there..emacs
file. Create aninit.el
file inside the.emacs.d
directory that you just found. put some sample config on there and see if emacs picks it up. For example(setq initial-scratch-message "Hello from my new init file :)")