summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrazazy2022-04-27 10:03:20 +0200
committerCrazazy2022-04-27 19:29:05 +0200
commit89941dabf83de2665338f73dc3e1b1269ca8c571 (patch)
tree7259d1fb157833ff5c6ece2d9738168ee61d9458
parent1f256dc86ba198614e4d90cc0ff6caebd4ed5090 (diff)
make sure to init the haskell env when haskell needs to load
-rw-r--r--emacs.org9
1 files changed, 5 insertions, 4 deletions
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