From adcb8b05159293a6c4f9aa1408c92d9d2e5f2001 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Wed, 8 Jan 2025 17:14:20 +0100 Subject: [PATCH] add: stuff to the .emacs config --- .emacs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 33c1306..d2bc9ac 100755 --- a/.emacs +++ b/.emacs @@ -66,9 +66,14 @@ (lsp-rust-analyzer-display-reborrow-hints nil) :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode) (c-mode . lsp) + (c++-mode . lsp) + (haskell-mode . lsp) (python-mode . lsp)) :commands lsp) +(add-hook 'haskell-mode-hook #'lsp) +(add-hook 'haskell-literate-mode-hook #'lsp) + ;;https://robert.kra.hn/posts/rust-emacs-setup/ (use-package rustic :ensure @@ -179,7 +184,7 @@ ;; If there is more than one, they won't work right. '(inhibit-startup-screen t) '(package-selected-packages - '(benchmark-init company simpleclip rust-mode org-cliplink neotree magit gruber-darker-theme go-mode evil dash-functional all-the-icons))) + '(lsp-haskell benchmark-init company simpleclip rust-mode org-cliplink neotree magit gruber-darker-theme go-mode evil dash-functional all-the-icons))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.