I've spent a long time looking for my .emacs file and have yet to find it even after using the solution here: https://stackoverflow.com/questions/27869909/what-to-do-if-i-cannot-find-my-emacs-init-file
Someone also said if I start up with emacs -Q (without the init file) and it looks different then starting up regularly, I already have a .emacs file. Because of this discrepancy between emacs and emacs -Q, I think I already have .emacs file, but I cannot find it. What would happen if I create a new .emacs file and edit it?
.emacs
file:(message "Hello @Goldname -- how are you today?")
Then, save the file and restart Emacs and go to the*Messages*
buffer and see if your new message is there. If it is, then crack open a beer and celebrate because you have just located your.emacs
file and verified that it is being read by Emacs. You can only have one of them, not more than one. So, do whatever you want with your one.emacs
file. Use it to customize Emacs to your liking, including loading additional files or libraries..emacs
file in the home directory, or aninit.el
inside the.emacs.d
folder in the home directory. Get that squared away before you do anything else. If you want to try out line numbers, just typeM-x linum-mode
in whatever buffer you want to use..emacs.d
folder inside the home directory, but it does not make the.emacs
file in the home directory unless you customize and save a setting. You can customize some setting in the menu-bar like font, and then save the setting for all future sessions, and then Emacs will create the.emacs
file with the new setting included inside the file. Otherwise, just create the file manually yourself -- either a.emacs
in the home directory, or aninit.el
inside the.emacs.d
folder, whichever you prefer. You can create the file using anything -- e.g., file manager . . .