I am having trouble telling Emacs to load and evaluate an additional .el file which only contains some lisp code to load an org file
;; keep my personal settings not in the .emacs file
;; http://www.mygooglest.com/fni/dot-emacs.html
;; load it if it exists
(let ((personal-settings "~/personal.el"))
(when (file-exists-p personal-settings)
(load-file personal-settings))
)
If I call the file personal.el interactively via load-file Emacs executes the code (which just contains some lisp code to load an org file).
If I run M-X eval-buffer on the .emacs manually, the personal.el is executed properly, the org file is loaded.
What do I need to do to make Emacs load the file if it exists during emacs start?
EDIT
I rephrased the question and ran additional tests: (expand-file-name) did not have any effect but more weird is that Emacs does not evaluate a hard-coded (find-file "~/Dropbox/orgmode.org") even if it is the only line in my .emacs file. And again it works if I load this file manually and run m-x eval-buffer on it.