Debug startup, support LSP, update KBDs
Debug startup: - some packages were missing explicit use-package calls, which made this configuration incompatible with fresh computers. After crashing my MBP and trying to get this working thereafter, I learned. Support LSP: - LSP support for Haskell is good; embrace and prefer over Intero Update KBDs: - preferences change - changing to a light theme (for now)
This commit is contained in:
parent
0d6c0881a8
commit
0244474e9f
9 changed files with 53 additions and 33 deletions
|
|
@ -7,21 +7,10 @@
|
|||
;;; Code:
|
||||
|
||||
;; Haskell support
|
||||
(use-package intero
|
||||
:config
|
||||
(intero-global-mode 1))
|
||||
|
||||
;; text objects for Haskell
|
||||
(quelpa '(evil-text-objects-haskell
|
||||
:fetcher github
|
||||
:repo "urbint/evil-text-objects-haskell"))
|
||||
(require 'evil-text-objects-haskell)
|
||||
|
||||
;; font-locking, glyph support, etc
|
||||
(use-package haskell-mode
|
||||
:gfhook #'evil-text-objects-haskell/install
|
||||
:after (intero evil-text-objects-haskell)
|
||||
:config
|
||||
(flycheck-add-next-checker 'intero 'haskell-hlint)
|
||||
(let ((m-symbols
|
||||
'(("`mappend`" . "⊕")
|
||||
("<>" . "⊕"))))
|
||||
|
|
@ -29,7 +18,15 @@
|
|||
(setq haskell-font-lock-symbols t)
|
||||
(add-hook 'before-save-hook #'haskell-align-imports))
|
||||
|
||||
;; LSP support
|
||||
(use-package lsp-haskell
|
||||
:after (haskell-mode)
|
||||
:config
|
||||
(setq lsp-haskell-process-path-hie "hie-wrapper")
|
||||
(add-hook 'haskell-mode-hook #'lsp-haskell-enable)
|
||||
(add-hook 'haskell-mode-hook #'flycheck-mode))
|
||||
|
||||
;; Test toggling
|
||||
(defun empire/haskell/module->test ()
|
||||
"Jump from a module to a test."
|
||||
(let ((filename (->> buffer-file-name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue