mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
Haskell and Racket
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
cbdc74bc54
commit
62f8547895
|
@ -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
12
emacs-lisp/racket.org
Normal 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:
|
Loading…
Reference in a new issue