Haskell and Racket

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-01-18 00:26:49 +01:00
parent cbdc74bc54
commit 62f8547895
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 22 additions and 6 deletions

View file

@ -35,12 +35,16 @@ This just requires hooking lsp onto ~c-mode~ and ~c++-mode~.
Enable ~haskell-mode~, and ~lsp-haskell~
#+BEGIN_SRC emacs-lisp
(use-package haskell-mode
:straight t
:hook ((haskell-mode haskell-literate-mode) . #'lsp)
:hook ((haskell-mode haskell-literate-mode) . interactive-haskell-mode))
(use-package lsp-haskell
:straight t)
(use-package haskell-mode
:straight t
:hook ((haskell-mode haskell-literate-mode) . interactive-haskell-mode)
:config
(setq lsp-haskell-plugin-ghcide-type-lenses-global-on nil
lsp-haskell-plugin-import-lens-code-lens-on nil))
(use-package lsp-haskell
:straight t
:after lsp
:hook ((haskell-mode haskell-literate-mode) . #'lsp))
#+END_SRC
Disable the ~haskell-stack-ghc~ flycheck checker, it's not used when lsp starts, but it does get loaded just before it. Loading and unloading it is slow and causes Emacs to freeze for a few seconds, so just disable it.

12
emacs-lisp/racket.org Normal file
View file

@ -0,0 +1,12 @@
:PROPERTIES:
:ID: 3709b269-1b66-44c9-b282-c97f48716c52
:END:
#+title: Racket
#+filetags: emacs-load
#+BEGIN_SRC emacs-lisp
(use-package racket-mode
:straight t)
#+END_SRC
#+RESULTS: