Added hungry delete and Improved haskell experience

This commit is contained in:
Zelong Kuang
2025-12-27 16:41:42 +08:00
parent fa0aace21f
commit 87da967854
3 changed files with 20 additions and 7 deletions

View File

@@ -2,15 +2,18 @@
(use-package haskell-mode
:hook (haskell-mode . (haskell-collapse-mode
interactive-haskell-mode
haskell-doc-mode
hindent-mode))
:hook (haskell-mode . (lambda ()
(haskell-collapse-mode)
(interactive-haskell-mode)
(haskell-doc-mode)
(haskell-indent-mode)))
:mode (("\\.hs\\'" . haskell-mode))
:bind ("C-c C-z" . run-haskell)
:config
(setq haskell-process-suggest-remove-import-lines t
haskell-process-auto-import-loaded-modules t)
(add-to-list 'completion-ignored-extensions ".hi"))
(add-to-list 'completion-ignored-extensions ".hi")
(add-hook 'haskell-mode-hook #'eglot-ensure))
(provide 'init-haskell)