add compatibility with non-color-theme emacs24