elisp/haskell-init.el
changeset 83 ab9ebd922ccb
parent 82 12cf67bc486c
child 84 2ad7a42a31f7
equal deleted inserted replaced
82:12cf67bc486c 83:ab9ebd922ccb
    37 
    37 
    38 ;;; haskell-mode
    38 ;;; haskell-mode
    39 (add-hook
    39 (add-hook
    40  'haskell-mode-hook
    40  'haskell-mode-hook
    41  (lambda ()
    41  (lambda ()
       
    42    (flycheck-mode t)
       
    43    (flycheck-disable-checker 'haskell-ghc)
       
    44    (flycheck-disable-checker 'haskell-stack-ghc)
       
    45    (flycheck-clear t)
    42    ;; (imenu-add-menubar-index)
    46    ;; (imenu-add-menubar-index)
    43    ;; (haskell-indentation-mode t)
    47    ;; (haskell-indentation-mode t)
    44    (stack-mode)
    48    (stack-mode t)
    45    ;; (flycheck-mode)
    49    (subword-mode t)
    46    (subword-mode)
    50    (capitalized-words-mode t)
    47    (electric-indent-mode nil)
    51    (electric-indent-mode nil)
    48    (structured-haskell-mode t)
    52    (structured-haskell-mode t)
    49    (set-face-background 'shm-quarantine-face "lemonchiffon")
    53    (set-face-background 'shm-quarantine-face "lemonchiffon")
    50    (interactive-haskell-mode t)
    54    (interactive-haskell-mode t)
    51 
    55 
    52    (setq
    56    (setq
    53     capitalized-words-mode t
       
    54     haskell-stylish-on-save t
    57     haskell-stylish-on-save t
    55     haskell-indentation-layout-offset 4
    58     haskell-indentation-layout-offset 4
    56     haskell-indentation-left-offset 4
    59     haskell-indentation-left-offset 4
    57 
    60 
    58     haskell-notify-p t
    61     haskell-notify-p t