2015-02-22 11:03:46 +00:00
|
|
|
;;; config.el --- Haskell Layer configuration File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-02-22 11:03:46 +00:00
|
|
|
;;
|
|
|
|
;; Author: Bjarke Vad Andersen <bjarke.vad90@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-02-22 11:03:46 +00:00
|
|
|
|
|
|
|
;; Variables
|
2015-04-01 02:24:01 +00:00
|
|
|
|
2020-08-07 13:41:33 +00:00
|
|
|
(setq haskell-modes '(haskell-mode haskell-literate-mode))
|
2016-05-01 15:41:38 +00:00
|
|
|
|
2016-09-05 02:29:41 +00:00
|
|
|
(spacemacs|define-jump-handlers haskell-mode haskell-mode-jump-to-def-or-tag)
|
|
|
|
|
2021-03-18 04:14:53 +00:00
|
|
|
(defvar haskell-completion-backend (if (configuration-layer/layer-used-p 'lsp) 'lsp 'dante)
|
2016-06-10 16:53:07 +00:00
|
|
|
"Completion backend used by company.
|
2020-08-25 07:38:30 +00:00
|
|
|
Available options are `dante' and `lsp'.
|
|
|
|
If `nil' then `dante' is the default backend unless `lsp' layer is used.")
|
2015-02-23 18:16:47 +00:00
|
|
|
|
2018-01-04 09:25:11 +00:00
|
|
|
(defvar haskell-enable-hindent nil
|
|
|
|
"Formatting with hindent; If t hindent is enabled.")
|