summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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