41 lines
1,007 B
EmacsLisp
41 lines
1,007 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 '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
|
|
(require '+custom-pkg-flycheck "$HOME/.emacs.d/pkg/flycheck.el")
|
|
(require '+custom-pkg-transient "$HOME/.emacs.d/pkg/transient.el")
|
|
|
|
(use-package haskell-mode
|
|
:straight t
|
|
:defer t)
|
|
|
|
(use-package lsp-haskell
|
|
:straight t
|
|
:defer t
|
|
:requires (lsp-mode lsp-ui haskell-mode)
|
|
:config
|
|
(setq lsp-haskell-process-path-hie "haskell-language-server-wrapper"))
|
|
|
|
(defun activate-haskell-mode ()
|
|
"Run this in haskell-mode."
|
|
(set-indent 2)
|
|
(column-enforce-n 80)
|
|
(lsp)
|
|
|
|
;; Company list override
|
|
(add-to-list (make-local-variable 'company-backends)
|
|
'(company-capf company-yasnippet)))
|
|
|
|
(add-hook 'haskell-mode-hook 'activate-haskell-mode)
|
|
|
|
(provide '+custom-lang-haskell)
|
|
;;; haskell.el ends here
|