All checks were successful
/ Test config on 20 (push) Successful in 26s
The following does not provide completion for variables: (use-package thing :custom (thing-thing :ok))
38 lines
810 B
EmacsLisp
38 lines
810 B
EmacsLisp
;;; haskell.el --- summary -*- lexical-binding: t; -*-
|
|
|
|
;; Author: Maciej Szlosarczyk
|
|
;; Maintainer: Maciej Szlosarczyk
|
|
;; Version: 0.1-snapshot
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Provides configuration for haskell files
|
|
|
|
;;; Code:
|
|
|
|
(require 'icejam-prog-mode)
|
|
(require 'icejam-lsp)
|
|
|
|
(use-package haskell-mode
|
|
:ensure t
|
|
:defer t)
|
|
|
|
(use-package lsp-haskell
|
|
:ensure t
|
|
:defer t
|
|
:after (lsp-mode lsp-ui haskell-mode))
|
|
|
|
(defun icejam-activate-haskell-mode ()
|
|
"Run this in haskell-mode."
|
|
(icejam-set-indent 2)
|
|
(column-enforce-n 80)
|
|
(lsp-deferred)
|
|
|
|
;; Company list override
|
|
(add-to-list (make-local-variable 'company-backends)
|
|
'(company-capf company-yasnippet)))
|
|
|
|
(add-hook 'haskell-mode-hook 'icejam-activate-haskell-mode)
|
|
|
|
(provide 'icejam-lang-haskell)
|
|
;;; icejam-lang-haskell.el ends here
|