Question of curiosity...
Let's assume I have the following files...~/.emacs
, ~/.emacs.d/init.el
and ~/.emacs.el
.
Now, assume that each of these contain separate pieces of code, for example :
~/.emacs
(global-set-key (kbd "<f8>") 'execute-extended-command)
~/.emacs.d/init.el
(global-set-key (kbd "<apps>") 'execute-extended-command)
~/.emacs.el
(global-set-key (kbd "<menu>") 'execute-extended-command)
Notice that all files make separate changes to the execute-extended-command
. When emacs is opened, which of these files will be executed? All of them, one of them, or none of them? Is there a special order for which ones are executed first? And, additionally, is it a bad idea to have multiple init files?
Any answer touching these subjects, and any additional information is adequate, I simply want to know what happens in such a scenario.