Skip to content

Commit

Permalink
Restructured haskell/init-haskell-mode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
taksuyu committed Oct 23, 2015
1 parent 1fdd332 commit fc71db7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions layers/+lang/haskell/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
(defun haskell/init-haskell-mode ()
(use-package haskell-mode
:defer t
:init
(setq
;; Use notify.el (if you have it installed) at the end of running
;; Cabal commands or generally things worth notifying.
haskell-notify-p t
;; To enable tags generation on save.
haskell-tags-on-save t
;; Remove annoying error popups
haskell-interactive-popup-errors nil
;; Better import handling
haskell-process-suggest-remove-import-lines t
haskell-process-auto-import-loaded-modules t
;; Disable haskell-stylish-on-save, as it breaks flycheck highlighting.
;; NOTE: May not be true anymore - taksuyu 2015-10-06
haskell-stylish-on-save nil)
:config
(progn
;; Haskell main editing mode key bindings.
Expand All @@ -70,21 +85,6 @@
(unless haskell-enable-shm-support
(add-hook 'haskell-mode-hook 'haskell-indentation-mode))

;; settings
(setq
;; Use notify.el (if you have it installed) at the end of running
;; Cabal commands or generally things worth notifying.
haskell-notify-p t
;; To enable tags generation on save.
haskell-tags-on-save t
;; Remove annoying error popups
haskell-interactive-popup-errors nil
;; Better import handling
haskell-process-suggest-remove-import-lines t
haskell-process-auto-import-loaded-modules t
;; Disable haskell-stylish on save, it breaks flycheck highlighting
haskell-stylish-on-save nil)

;; prefixes
(spacemacs/declare-prefix-for-mode 'haskell-mode "mg" "haskell/navigation")
(spacemacs/declare-prefix-for-mode 'haskell-mode "ms" "haskell/repl")
Expand Down

0 comments on commit fc71db7

Please sign in to comment.