feat(sterni/emacs): setup direnv and lsp(-haskell)

The LSP setup is very basic at the moment, I'll probably want lsp-ui as
well and other bits and pieces.

Change-Id: Ic0360bbfde98e99990aa3ccb68ea045b522e67ce
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5386
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
This commit is contained in:
sterni 2022-03-12 13:33:55 +01:00 committed by clbot
parent 648e18d142
commit 9cba0624d6
2 changed files with 11 additions and 0 deletions

View file

@ -13,10 +13,13 @@ let
epkgs.bqn-mode
epkgs.elpaPackages.ada-mode
epkgs.melpaPackages.adoc-mode
epkgs.melpaPackages.direnv
epkgs.melpaPackages.dockerfile-mode
epkgs.melpaPackages.haskell-mode
epkgs.melpaPackages.jq-mode
epkgs.melpaPackages.languagetool
epkgs.melpaPackages.lsp-mode
epkgs.melpaPackages.lsp-haskell
epkgs.melpaPackages.markdown-mode
epkgs.melpaPackages.nix-mode
epkgs.melpaPackages.sly

View file

@ -193,7 +193,15 @@
(use-package nix-mode :mode "\\.nix\\'")
(use-package nix-drv-mode :mode "\\.drv\\'")
(use-package direnv
:config (direnv-mode))
(use-package haskell-mode)
(use-package lsp-mode
:hook ((haskell-mode . lsp-deferred))
:commands (lsp lsp-deferred))
(use-package lsp-haskell)
(use-package urweb-mode)
(use-package bqn-mode
:mode "\\.bqn\\'"