added camelcase to haskell mode

This commit is contained in:
ndwarshuis 2018-11-18 23:30:26 -05:00
parent 3a9743e291
commit 540ac5f271
1 changed files with 6 additions and 0 deletions

View File

@ -509,6 +509,7 @@ NOTES:
python-shell-interpreter-args "--colors=Linux --profile=default") python-shell-interpreter-args "--colors=Linux --profile=default")
#+END_SRC #+END_SRC
*** haskell *** haskell
**** major mode and intero
Haskell is covered just with the basic major mode and intero (provides =company= and =flycheck=) which integrates well with stack. Haskell is covered just with the basic major mode and intero (provides =company= and =flycheck=) which integrates well with stack.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package haskell-mode (use-package haskell-mode
@ -522,6 +523,11 @@ Haskell is covered just with the basic major mode and intero (provides =company=
:hook :hook
(haskell-mode . intero-mode)) (haskell-mode . intero-mode))
#+END_SRC #+END_SRC
**** camelCase
The defacto style for haskell mandates camelcase, so use subword mode.
#+BEGIN_SRC emacs-lisp
(add-hook 'haskell-mode-hook #'subword-mode)
#+END_SRC
*** latex *** latex
**** flycheck **** flycheck
Flycheck should work out of the box. Flycheck should work out of the box.