Derive slim-mode from prog-mode for Emacs >= 24

So that hooks for prog-mode run for slim-mode