I am using configuration.nix
to install both emacs
and haskellMode
package in a way:
environment.systemPackages = with pkgs; [
(haskellPackages.ghcWithPackages (self : [
self.cabalInstall
self.happy
self.alex
self.ghcMod
]))
emacs
emacs24Packages.haskellMode
];
My .emacs
file contains:
(require 'haskell-mode)
(add-hook 'haskell-mode-hook 'turn-on-hi2)
Emacs then starts with no errors (so I assume that it can find haskell-mode
), but it doesn't go to Haskell minor mode when I open .hs
files.
~/.nix-profile/share/emacs/site-lisp/haskell-....
files do exist in my profile, if it matters...
So, how do I make it work?