Another failed attempt at haskell mode

This commit is contained in:
Maciej 2020-08-24 13:46:39 +03:00
parent df8a84448e
commit 0b99bebc10
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
2 changed files with 5 additions and 7 deletions

View file

@ -58,12 +58,10 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
(quote '(dante dash-at-point racer racer-mode flycheck-rust rust-mode haskell-mode dune which-key erlang gitignore-mode yaml-mode nginx-mode ansible terraform-mode dockerfile-mode reason-mode merlin tuareg clj-refactor cider clojure-mode elixir-mode js2-mode web-mode enh-ruby-mode ruby-end rspec-mode planet-theme flatui-theme base16-theme smart-mode-line lsp-ui lsp-mode deft counsel-projectile flycheck company yasnippet-snippets yasnippet visual-regexp column-enforce-mode rainbow-mode rainbow-delimiters magit hydra counsel keyfreq exec-path-from-shell buffer-move use-package))
(racer racer-mode flycheck-rust rust-mode dante haskell-mode dune which-key erlang gitignore-mode yaml-mode nginx-mode ansible terraform-mode dockerfile-mode reason-mode merlin tuareg clj-refactor cider clojure-mode elixir-mode js2-mode web-mode enh-ruby-mode ruby-end rspec-mode planet-theme flatui-theme base16-theme smart-mode-line lsp-ui lsp-mode deft counsel-projectile flycheck company yasnippet-snippets yasnippet visual-regexp column-enforce-mode dash-at-point rainbow-mode rainbow-delimiters magit hydra counsel keyfreq exec-path-from-shell buffer-move use-package)))
'(safe-local-variable-values '(safe-local-variable-values
(quote '((haskell-process-use-ghci . t)
((haskell-process-use-ghci . t) (haskell-indent-spaces . 4))))
(haskell-indent-spaces . 4)))))
;; Improve font settings in Markdown code ;; Improve font settings in Markdown code
(custom-set-faces (custom-set-faces

View file

@ -6,7 +6,7 @@
;;; Commentary: ;;; Commentary:
;; haskell does a thing. ;;; Provides configuration for haskell files
;;; Code: ;;; Code:
@ -27,12 +27,12 @@
"Run this in haskell-mode." "Run this in haskell-mode."
(set-indent 2) (set-indent 2)
(column-enforce-n 80) (column-enforce-n 80)
(dante-mode)
;; Company list override ;; Company list override
(add-to-list (make-local-variable 'company-backends) (add-to-list (make-local-variable 'company-backends)
'(dante-company company-yasnippet))) '(dante-company company-yasnippet)))
(add-hook 'haskell-mode-hook 'dante-mode)
(add-hook 'haskell-mode-hook 'activate-haskell-mode) (add-hook 'haskell-mode-hook 'activate-haskell-mode)
(provide 'languages/haskell) (provide 'languages/haskell)