not getting evaluated, I have to run this function every time even though it is in my init.el file and other
emacs --debug-init and see if you get a backtrace. The symptom you are describing is probably an error half way through the init file which is aborting the rest of the load.
EDIT in response to the comment:
emacs looks first for
~/.emacs.el) and if it does not find that it looks for
~ stands for your home directory). So just delete
~/.emacs.el if it exists) and it will use