Commit graph

25 commits

Author SHA1 Message Date
Jean-Christophe Petkovich f099537282 Fix for flycheck-haskell-setup autoload
I get the following backtrace after starting any mode that includes
flycheck initialization:

Debugger entered--Lisp error: (void-function flycheck-haskell-setup)
  flycheck-haskell-setup()
  run-hooks(flycheck-mode-hook flycheck-mode-on-hook)
  flycheck-mode()
  run-hooks(change-major-mode-after-body-hook prog-mode-hook python-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook python-mode-hook))
  run-mode-hooks(python-mode-hook)
  python-mode()
  set-auto-mode-0(python-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer setup.py> "~/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py" nil nil "~/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py" (11679577 2052))
  find-file-noselect("/home/jcp/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py" nil nil nil)
  find-file("/home/jcp/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py")
  find-file-at-point("/home/jcp/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py")
  helm-find-file-or-marked("/home/jcp/projects/fast-regression-testing/data/packages/libgcrypt-commits-pkg/setup.py")
  ...
  ABBREVIATED HELM BACKTRACE
  ...
  helm-find-files-1("/home/jcp/" nil)
  helm-find-files(nil)
  call-interactively(helm-find-files nil nil)
  command-execute(helm-find-files)

By moving the `flycheck-mode-hook` manipulation to
`haskell/init-flycheck-haskell`, I no longer get this error.
2015-03-20 21:37:38 -04:00
syl20bnr 72edfcd137 Move SPC m t and SPC m i under SPC m h
`SPC m t` is reserved for tests.
Information commands are considered help commands.
2015-03-18 08:51:20 -04:00
Pierre Radermecker 3deb06fec9 haskell layer: haskell-enable-hindent-support requires a style name
Fixes #758
2015-03-16 01:45:14 -04:00
Michael Hauser-Raspe 519e46bbc9 Add haskell-type-on-previous-line function 2015-03-13 23:22:39 -04:00
Bjarke Vad dda1e8de86 Updated haskell/shm bindings + misc haskell
- Added some shm keybindings that fit a bit better with evil-mode
- Set better(saner at least) default for hindent style
- Removed C-{<right>,<left>} bindings
- Removed flycheck delay for showing error at point
2015-03-02 18:43:43 -05:00
Bjarke Vad 83ea6cd2f3 Fixed flycheck not being properly initialized for haskell-mode 2015-03-02 18:40:03 -05:00
syl20bnr a024d74521 haskell layer: Always install shm and hindent 2015-03-01 00:00:10 -05:00
Michel Kuhlmann dc7d3898ee haskell: optional hindent-mode 2015-02-28 23:58:36 -05:00
syl20bnr 6687f2d0fe Rename haskell variables to enable shm and ghci-ng
`haskell-enable-shm-support`
`haskell-enable-ghci-ng-support`
2015-02-24 20:09:06 -05:00
Bjarke Vad 3b8742f3cc Fixes an issue with company-ghc not loading correctly
- the `ghc-comp-init` function should not be called as a hook when
  `ghc-init` is already called in `haskell-hook`
- load company-ghc with yasnippet support
2015-02-24 18:39:53 -05:00
Bjarke Vad 14c1852f34 Added initial support for structured-haskell-mode 2015-02-23 23:48:06 -05:00
Bjarke Vad 78b794f06c Fixes #641 2015-02-22 12:49:35 -05:00
Bjarke Vad f447e937e8 Added ghci-ng support to haskell layer
- uses the variable `haskell-ghci-ng-support` to enable support
2015-02-22 12:49:10 -05:00
syl20bnr 66e38ec962 Lazy load ghc-comp-init in haskell layer 2015-02-14 22:45:14 -05:00
syl20bnr 22930c3d33 Change all SPC m g bindings to SPC m g g according to conventions 2015-01-20 22:32:13 -05:00
syl20bnr c31d987668 Move hi2 related functions in init-hi2 function in haskell layer 2015-01-14 23:23:08 -05:00
syl20bnr ceefe88b75 Update CONTRIBUTE.md and add file headers
Also add default file header to layer templates.
2015-01-13 23:12:56 -05:00
Chris Barrett d54e1ae4c7 Configure hi2
Resolves #356
2015-01-01 02:09:41 -05:00
Bjarke Vad cb27ee6190 Removed ghci-completion package
- ghci-completion is redundant when using flycheck-haskell
2014-12-28 23:47:47 -05:00
Bjarke Vad 0df1d21c11 set haskell-process-type to auto
Should work in more use-cases
2014-12-28 23:47:44 -05:00
Bjarke Vad ee0b0b240d Updated haskell-mode bindings
- Fits better with conventions
- Check README.md for bindings

Fixes flycheck for haskell

- Disabled haskell-stylish on save as it interferes with flycheck errror highlighting
- Added a new binding, `SPC m f` that runs haskell-stylish

removed haskell-stylish-on-save
2014-12-22 21:49:20 -05:00
Bjarke Vad 9df3400643 Updated Haskell layer
- Uses cabal-repl instead of the deprecated cabal-dev
- Loads company-ghc if company-mode is enabled
- Fixed RET in REPL
- See README.md for keybindings
2014-12-21 23:05:29 -05:00
syl20bnr 59286d8ea4 Move ghc package to Haskell layer 2014-12-13 23:31:03 -05:00
syl20bnr 46a717254d Fixes #226 Flycheck not automatically started in haskell buffers. 2014-12-11 22:34:13 -05:00
syl20bnr 5295e9e3a3 Move Haskell to its own lang contrib layer 2014-12-01 23:22:45 -05:00