about summary refs log tree commit diff
path: root/init/haskell.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2014-12-29T20·51+0100
committerVincent Ambo <vincent@kivra.com>2014-12-29T20·51+0100
commitfb9a837c67a3f7e15c89daad168f2982aa3be8cc (patch)
tree830643ffade4477057c93b8920bd4b7d3a28f12b /init/haskell.el
parent677eba3e60b5f1b1473524a83e4d73dae1cba99b (diff)
Split out Haskell and Clojure config
Diffstat (limited to 'init/haskell.el')
-rw-r--r--init/haskell.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/init/haskell.el b/init/haskell.el
new file mode 100644
index 000000000000..af105e00e8ac
--- /dev/null
+++ b/init/haskell.el
@@ -0,0 +1,25 @@
+(require 'haskell-mode)
+
+;; Setup for Haskell mode
+
+;; Bindings
+
+(eval-after-load "haskell-mode"
+  '(define-key haskell-mode-map (kbd "C-c C-c") 'haskell-compile))
+
+(eval-after-load "haskell-cabal"
+  '(define-key haskell-cabal-mode-map (kbd "C-c C-c") 'haskell-compile))
+
+(add-hook 'haskell-mode-hook 'hi2-mode)
+
+;; Settings
+
+(setq haskell-interactive-popup-errors t
+      haskell-stylish-on-save t
+      haskell-tags-on-save t
+      haskell-process-suggest-remove-import-types t
+      haskell-process-auto-import-loaded-modules t
+      haskell-process-log t
+      haskell-process-type 'cabal-repl)
+
+(provide 'haskell)