ok sorry I've realized this is a problem with my config so I am attaching my ~/.emacs here. Maybe that will help.