summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-07-23 17:54:28 +0200
committerAlan Pearce2019-07-23 17:55:01 +0200
commit6d73b558a8bddb14605d6a798590416d6a3afc89 (patch)
treee87cbab7d90771eb7c0a28dc7def985d7d4832b1 /emacs
parent961e9e9938f68e468631a8c039d99fde597c5b28 (diff)
downloadnixfiles-6d73b558a8bddb14605d6a798590416d6a3afc89.tar.lz
nixfiles-6d73b558a8bddb14605d6a798590416d6a3afc89.tar.zst
nixfiles-6d73b558a8bddb14605d6a798590416d6a3afc89.zip
Emacs: configure lsp-mode for haskell
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 2347ed44..825d6e60 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -548,7 +548,8 @@ With two prefix arguments, write out the day and month name."
             js-mode-hook
             css-mode-hook
             scss-mode-hook
-            html-mode-hook)
+            html-mode-hook
+            haskell-mode-hook)
           #'lsp)
   :functions (lsp--flymake-setup)
   :gfhook 'lsp--flymake-setup
@@ -569,6 +570,9 @@ With two prefix arguments, write out the day and month name."
            (lsp-ui-doc-mode nil)
            (lsp-enable-snippet nil)))
 
+(use-package lsp-haskell
+  :after lsp-mode)
+
 ;; Inside a javascript project, it's common to install tools locally to
 ;; the project.  This will allows emacs to find their executables.