Add haskell configuration in its own separate file
This commit is contained in:
parent
42ebb1394d
commit
79a7451546
6 changed files with 81 additions and 44 deletions
32
languages/haskell.el
Normal file
32
languages/haskell.el
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
;;; Haskell -- summary
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
;;========== Editor config =========================
|
||||
(defun editor-config-haskell ()
|
||||
"Editor configuration for Haskell."
|
||||
(set-indent 4)
|
||||
(set-width-80))
|
||||
|
||||
;;========== Code completion =======================
|
||||
(defun completion-config-haskell ()
|
||||
"Code completion and inspection for Javascript."
|
||||
(company-mode 1)
|
||||
(flycheck-mode 1)
|
||||
(flymake-mode 1)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((company-ghci company-capf company-etags company-dabbrev-code
|
||||
company-yasnippet company-files))))
|
||||
|
||||
:;========== Scion mode ============================
|
||||
;; (defun scion-config-haskell ()
|
||||
;; "Configuration for scion mode."
|
||||
;; (scion-mode 1))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'haskell-mode-hook 'edito-config-haskell)
|
||||
(add-hook 'haskell-mode-hook 'completion-config-haskell)
|
||||
;; (add-hook 'haskell-mode-hook 'scion-config-haskell)
|
||||
|
||||
(provide 'haskell)
|
||||
;;; haskell.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue