Commit graph

104 commits

Author SHA1 Message Date
JAremko 5ccbf4fbc5 Disable dante package if Emacs version is less than 25
fix #8985
2017-06-03 08:59:02 +03:00
Eivind Fonn bf41e9e300 Move enabling of dante-mode to setup-dante function 2017-05-28 14:41:33 +02:00
Kyle McKean 1ed49e0878 add dante support to haskell layer 2017-05-28 14:40:25 +02:00
Kristoffer Haugsbakk 79ed1a6b4b Use proper markup for code in readmes
By convention, code markup (`~`) is reserved for keybindings in Org-based
documentation in Spacemacs.  Verbatim markup (`=`) is reserved for code and
other code-like things.  So change several readmes to reflect this convention.

Use verbatim markup for things like (non-exhaustive list):

- Emacs Lisp functions, modes, buffers, etc.
- Environment variables
- Directory paths
- Code in general
2017-05-24 11:57:17 +02:00
Eivind Fonn 144c37955f Remove unnecessary function 2017-05-23 15:34:24 +02:00
Benno Fünfstück 0d9c56cefc haskell: disable electric indent for cabal-mode 2017-05-23 15:33:01 +02:00
JAremko 6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
Fangrui Song 6fe2348013 Haskell: use intero-goto-definition for jump handler if intero-mode is enabled. 2017-05-14 13:32:28 -04:00
JAremko f805d0ebd9 Fix spacefmt test on deleted files
Also fix some links
[ci skip]
2017-04-28 23:29:43 -04:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
syl20bnr f45ce1a88e syntax-checking: rename function add-flycheck-hook to enable-flycheck
spacemacs/add-flycheck-hook was not really hooking anything, change the name
to better reflect what it does.
Also changed the push for a add-to-list to avoid duplicates.
2017-03-19 12:40:36 -04:00
syl20bnr 87cd00eac7 conventions: update debug conventions
Step in and Step out are now, i and o respectively.
Inspect a value is now v.
Next step is now s.

These new conventions better fit evilificiation.
2017-02-12 13:02:55 -05:00
syl20bnr cf5dac00ad core: move and rename spacemacs//get-package-directory
Move it to core-configuration-layer.el
Rename it to configuration-layer/get-elpa-package-install-directory
2017-01-17 00:20:59 -05:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr 74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
syl20bnr 9066d073b2 Fix (void-variable spacemacs-jump-handlers-....)
Move the variable definitions to config.el and eval-after-load the
key binding on SPC m g g.
2016-09-04 22:31:47 -04:00
Christian Kjær 622938c757
Haskell: Add support for intero-apply-suggestions
As per #6233 add support for `intero-apply-suggestions` behind `SPC m r s`,
and move the prefix declaration for "haskell/refactor" to the other prefix declarations,
since it is no longer only relevant for hlint.
2016-09-04 11:50:00 +03:00
Eivind Fonn 5a869764dd Further improve gtags layer
- Add option to disable by default
- Use local-vars hook to allow per-project enable/disable
- Don’t enable helm-gtags-mode (no need)
- Move emacs bindings from helm-gtags-mode-map to ggtags-mode-map
2016-08-22 15:11:25 +02:00
Eivind Fonn 928983da47 Refactor jump to definition
This commit defines:

- spacemacs-default-jump-handlers: a list of functions that can jump to
  definition in ALL modes.

- spacemacs-jump-handlers-MODE: a list of functions that can jump to
  definition in MODE.

- spacemacs-jump-handlers: a buffer-local list of functions that can
  jump to definition. This is made up of the values of the two previous
  variables whenever a given major mode is activated.

- spacemacs/jump-to-definition: a function that tries each function in
  spacemacs-jump-handlers in order, and stops when one of them takes us
  somewhere new.

- spacemacs|define-jump-handlers: a macro that
  * defines spacemacs-jump-handlers-MODE, possibly filled with initial
    functions
  * defines a function that is added to the hook of the given MODE
  * binds “SPC m g g” of that MODE to spacemacs/jump-to-definition

This is an attempt to harmonize all the different approaches to jumping.
Specifically,

- Existing intelligent jump packages that work for only a single mode
  should go to the beginning of spacemacs-jump-handlers-MODE. E.g.
  anaconda for python, ensime for scala, etc.

- Packages like gtags that work for several modes (but potentially not
  all) and which is dumber than the intelligent jumpers should go the
  the END of spacemacs-jump-handlers-MODE.

- Packages like dumb-jump that work for all modes should go to
  spacemacs-default-jump-handlers.

In all cases the order of the jump handlers in each list should be from
most to least intelligent.

Fixes #6619
2016-08-22 15:08:25 +02:00
d12frosted 7280a46554
[haskell] add note about auto-completion layer
Fixes #6733
2016-08-04 13:38:54 +03:00
Tim Jäger 853945c722 Fix typos in Haskell layer README 2016-08-01 09:04:27 +02:00
Leon Isenberg be6fd0e8d0
Swap haskell layer specific keys f and F 2016-07-29 14:30:20 +03:00
Eivind Fonn 9773ad611f Clean up gtags readme 2016-07-17 17:36:07 +02:00
Christian E. Hopps b22702bc9e Expand gtags use to many more languages 2016-07-17 17:31:59 +02:00
Eivind Fonn 7a440195a8
Fix some intero functions 2016-07-17 10:00:34 +03:00
syl20bnr 15c392b891 haskell: remove unnecessary backquote 2016-07-05 00:23:16 -04:00
Koray Al 8d0f76b259 haskell: replace quotes with backquotes inside pcase 2016-07-05 00:23:16 -04:00
syl20bnr 89dc1af9a6 Remove spacemacs/add-to-local-vars-hook and use (format ...)
It is better to directly hook function using the conventional hook
functions.

Replace usage of (concat ...) by a (format ...) from which is more
readable.
2016-06-26 14:04:13 -04:00
d12frosted 45dd381fd2 conditionally enable haskell completion backend 2016-06-26 13:51:11 -04:00
syl20bnr 93d01704a6 haskell: align tables in documentation 2016-06-23 00:50:03 -04:00
d12frosted a8e569d3b2 refine haskell completion backends
- add haskell-completion-backend variable that should be used to select
  desired completion backend
- add support for intero (based on @cydparser layer)
- remove ghci-ng support
- update readme file:
  - document haskell-completion-backend variable
  - remove installation notes for ghc-mod as they are not relevant
    anymore
  - remove ghci-ng section
  - overall readme file fixes and improvements
2016-06-23 00:47:23 -04:00
Ben Gamari 7b1430e9d5 haskell: Don't enable haskell-tags-on-save
This is a very opinionated option and works very poorly on even
moderately large projects as it invokes `hasktags` synchronously,
freezing the editor for several seconds on every save. Users who want
this behavior should enable it manually.

Fixes #6292.
2016-06-12 21:51:28 -04:00
d12frosted 9df123c40c haskell: remove structured-haskell-mode 2016-06-12 21:11:32 -04:00
syl20bnr 81fbb9a292 Format README files with spacefmt 2016-06-10 00:09:42 -04:00
syl20bnr a1d60c0c82 haskell: unify key bindings for debugging 2016-06-07 23:36:06 -04:00
d12frosted adec65cc2b evilify haskell-debug-mode 2016-06-07 23:31:17 -04:00
Paul Wise 90c09f94bc Add hlint-refactor to haskell layer 2016-06-07 23:28:21 -04:00
d12frosted 815cf8c5d7 add troubleshooting notes for ghc-mod 2016-06-03 23:34:29 -04:00
Julian Ospald d320d1af4b Fix proposed ghc-mod workaround in haskell layer README
"m" is extraneous.

Also see #4770 and #4790
2016-05-29 23:14:24 -04:00
d12frosted ce88cdfca7 [haskell] fix type and info hey bindings 2016-05-29 23:00:24 -04:00
syl20bnr a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
sooheon 0a85d04892 Check for flycheck, not syntax-checking layer
This allows loading even when someone uses flycheck in their personal
layer.
2016-05-27 00:32:05 -04:00
syl20bnr 1f993bddf6 Rename spacemacs-helm and spacemacs-ivy layers to helm and ivy
For ivy users: be sure to update your dotfile by replacing spacemacs-ivy
by ivy
2016-05-15 22:24:27 -04:00
Eivind Fonn 3145e70f72 haskell: Clean up README 2016-05-06 13:24:12 +02:00
Maxime Bourget df669900da Update haskell layer documenation.
Add syntax checking section and improve FAQ so solve syntax checker problems.
2016-05-06 13:07:15 +02:00
syl20bnr 17fbeaf861 haskell: move haskell-modes variable def to config.el 2016-05-01 11:41:38 -04:00
syl20bnr 425e6ba7de haskell: use package toggles for company packages 2016-05-01 11:40:54 -04:00
Tim Dysinger 5cc4e16f4d Adds company-ghci to haskell layer
You don't need ghc-mod to do code completion with ghc 7.10+. GHCI has built-in code-completion suggestions you can aske for.  This is what company-ghci does.
2016-05-01 11:30:58 -04:00
syl20bnr 3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
Paul Schorfheide 0f76d52166 Add hoogle to list of packages for haskell layer 2016-03-30 18:49:18 -04:00