From 89941dabf83de2665338f73dc3e1b1269ca8c571 Mon Sep 17 00:00:00 2001 From: Crazazy Date: Wed, 27 Apr 2022 10:03:20 +0200 Subject: make sure to init the haskell env when haskell needs to load --- emacs.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'emacs.org') diff --git a/emacs.org b/emacs.org index 9d76288..a2a42f9 100644 --- a/emacs.org +++ b/emacs.org @@ -430,20 +430,21 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto I have to use haskell in my new module, so there is now some haskell infra for that first we have to set up a nix environment for our haskell tools #+begin_src emacs-lisp :tangle emacsconfig/haskell.el - (setq haskell-env (nix-env-from-packages "Haskell" - "ghc" - "cabal-install" - "haskellPackages.fourmolu")) #+end_src Then haskell-mode setup, which integrates company mode as well as the sandbox #+begin_src emacs-lisp :tangle emacsconfig/haskell.el (use-package haskell-mode + :mode "\\.hs\\'" :after nix-sandbox :hook (haskell-mode . set-haskell-company-backends) (haskell-mode . company-mode) (haskell-mode . haskell-indentation-mode) :config + (setq haskell-env (nix-env-from-packages "Haskell" + "ghc" + "cabal-install" + "haskellPackages.fourmolu")) (setq haskell-process-wrapper-function (lambda (args) (cons -- cgit 1.4.1-2-gfad0