From 7dbda566e83ce85de09fb0189f6027696adf0dee Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Mon, 11 Apr 2022 22:41:14 +0300 Subject: [PATCH] feat(emacs): minor haskell and lsp improvements --- emacs.mine/.config/emacs.mine/emacs.org | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/emacs.mine/.config/emacs.mine/emacs.org b/emacs.mine/.config/emacs.mine/emacs.org index 894288d..77bd91c 100644 --- a/emacs.mine/.config/emacs.mine/emacs.org +++ b/emacs.mine/.config/emacs.mine/emacs.org @@ -1416,7 +1416,7 @@ Lsp UI :custom (lsp-ui-peek-always-show t) (lsp-ui-doc-mode t) - (lsp-ui-sideline-show-hover t) + (lsp-ui-sideline-show-hover nil) ;; (lsp-ui-doc-enable nil) :bind (:map lsp-ui-mode-map @@ -1625,6 +1625,10 @@ Auto format #+end_src *** Haskell +#+begin_src emacs-lisp + (use-package haskell-mode :defer t) +#+end_src + #+begin_src emacs-lisp (use-package lsp-haskell :defer t @@ -1640,8 +1644,8 @@ Auto format (haskell-mode . my/font/pretty-lambdas-haskell) :config (haskell-indentation-mode -1) - ;; (add-hook 'before-save-hook 'lsp-format-buffer) - ;; :custom (haskell-stylish-on-save t) + (add-hook 'before-save-hook 'lsp-format-buffer) + :custom (haskell-stylish-on-save t) ) #+end_src