If you have Emacs backup enabled, you should have a copy of your next .emacs file in ~ / .emacs ~. If so, just rename it to ".emacs" and you will have a .emacs file with all but your latest changes. Even if you do not have backups, you can still have a substantial portion of your .emacs file in the last backup of the file. You should also look at the value of the variable "backup-directory-alist" - it determines the location (s) for the backup files that will be saved if the default value (the same directory as the modified file) is not used.
Otherwise, how good is your memory ...; -)
EDIT: since you do not have a backup of your .emacs file, but you have a running instance of Emacs that was running with this .emacs file, another thing you can do is save all user settings that would be specific in the .emacs file. To do this, do something like:
(setq custom-file "/my/home/directory/.emacs-custom.el") (custom-save-all)
Then you can create a new .emacs file and add the following lines to it:
(setq custom-file "/my/home/directory/.emacs-custom.el") (load custom-file)
This will at least restore some of the custom variable parameters that were in your .emacs file.
source share