From a55c88fc9a06001037a2ad2796a6c35ca26bf064 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 23 Mar 2018 14:58:42 -0700 Subject: [PATCH] [Emacs] Enable lsp-haskell Holy crap hie is really amazing --- dotfiles/emacs.d/README.org | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index b2d9a810..88395ce9 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2742,7 +2742,9 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 #+END_SRC **** haskell-ide-engine #+BEGIN_SRC emacs-lisp - ;; (use-package lsp-haskell) +(use-package lsp-haskell + :config + (add-hook 'haskell-mode-hook 'lsp-haskell-enable)) #+END_SRC **** intero Intero seems to be causing hangs, so it has been disabled @@ -3845,12 +3847,16 @@ emr (emacs refactor) provides support for refactoring in many programming langua #+END_SRC ** language-server-protocol (lsp) #+BEGIN_SRC emacs-lisp -(use-package lsp-mode - :commands lsp-mode - :init (add-hook 'prog-major-mode 'lsp-mode) +(use-package lsp-ui :config (progn - (require 'lsp-flycheck))) + (add-hook 'lsp-mode-hook 'lsp-ui-mode) + (progn + (require 'lsp-ui-flycheck)))) + +(use-package lsp-mode + :commands lsp-mode + :init (add-hook 'prog-major-mode 'lsp-mode)) #+END_SRC * Utility ** term