From a33382da614ca1a16ccda8f96dd4510d941109bf Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 2 Jan 2019 12:40:44 -0800 Subject: [PATCH] [Emacs] LSP updates, activate for haskell-mode --- dotfiles/emacs.d/README.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 1323e616..90d57ee3 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2825,8 +2825,7 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 #+BEGIN_SRC emacs-lisp (use-package lsp-haskell :config - (when (executable-find "hie") - (add-hook 'haskell-mode-hook 'lsp-haskell-enable))) + (add-hook 'haskell-mode-hook 'lsp)) #+END_SRC **** intero Intero seems to be causing hangs, so it has been disabled @@ -3975,9 +3974,12 @@ emr (emacs refactor) provides support for refactoring in many programming langua ** language-server-protocol (lsp) #+BEGIN_SRC emacs-lisp (use-package lsp-mode - :commands lsp-mode :config (progn + (setq lsp-prefer-flymake nil) + (use-package lsp-ui + :config + (add-hook 'lsp-mode-hook 'lsp-ui-mode)) (require 'lsp-clients) (add-hook 'programming-mode-hook 'lsp))) #+END_SRC