Commit Graph

182 Commits

Author SHA1 Message Date
Boris Buliga 54f69e3a96 [haskell] support dynamically set backend 2019-04-11 13:18:42 +02:00
Luke Worth 0eff6c1ca7 Document cabal-new-repl as a valid haskell-process-type
See
5b9a3e3688
2019-04-07 08:26:12 +02:00
cjay c47b53abbe Fix haskell jump handler for dante
Analog to d6b1d1674f50a85246eceda32866fd9f93d955d6 which was for intero
2019-04-04 12:14:14 +02:00
Cthulhu.Den 3a509fc0d9 Fix jump handlers conflict for haskell and intero 2019-01-15 00:36:30 +02:00
emacspace 45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
duianto ee811f7b13 Unify packages list parentheses style
problem:
some layer packages lists have the open and closing parentheses on the same line
as the first and last listed package, but most seem to have them on a separate
lines.

solution:
put the open and close parentheses on separate lines, except for lists with only
a single package, they are written on the same line as the variable name and
parentheses.

fix the lists indentation
2018-11-21 21:35:38 +00:00
d12frosted 152d41e7cf
update haskell backends selection flow to match changes in 74fdbb67 2018-11-04 19:12:55 +02:00
Sergio Ugalde 2dc7102c90
Fixed haskell documentation about REPL 2018-11-04 18:57:56 +02:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
duianto 35b258cd51 [Haskell] Fix Readme.org typos, missing words 2018-08-28 22:13:14 +01:00
Magnus Therning 655117009d Add a binding to return from definition in intero mode
Signed-off-by: Magnus Therning <magnus@therning.org>
2018-07-11 00:11:31 +03:00
Miciah Masters e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
Miciah Dashiel Butler Masters 78297be625 Fix various typos
* Fix various isolated typos

"apppend" -> "append"

"availabe" -> "available"

"Descripti using ternon" -> "Description"

"you have not them" -> "you don't have them"

"new on" -> "new one"

"plained" -> "curved"

"repel" -> "REPL"

"vairable" -> "variable"

* Fix a few errors in the CoffeeScript layer readme

Add a missing "the".

Correct a reference to the layer as "javascript" to "coffeescript".

Fix the syntax on the link to CoffeeLint.

* Fix typos: "dofile" -> "dotfile"

* Fix typos: "formated" and "formating"

"formated" -> "formatted"

"formating" -> "formatting"

* hy: Fix docstrings in funcs.el

Fix copy-and-pasted docstring text for
spacemacs/hy-shell-eval-current-form-and-go and
spacemacs/hy-shell-eval-region-and-go.

* Fix typos: "indendation" -> "indentation"

* Fix typos: "the the", "a a"

Fix duplicated (or misplaced) articles.

* Fix typos: "wether" -> "whether"

* Fix typos: "intialize" -> "initialize"
2018-05-23 22:12:30 -04:00
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr 29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
Colin Woodbury f187300491 haskell: Document `SPC m r i` binding 2018-01-28 22:54:14 -05:00
Colin Woodbury 6826ab10a6 haskell: Add function for proper import reformatting
- It will succeed from anywhere in the source file, unlike the current
  functions exposed by `haskell-mode` that exist for the same purpose.
2018-01-28 22:54:07 -05:00
Pierre Radermecker 59f78d8700 Update hindent config in haskell layer
Hindent styling is a deprecated feature (with no more effect).
Use a simple bool toggle to activate it.

Update README
2018-01-09 23:55:49 -05:00
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
Robbert van der Helm c61ae1a1c1 Add ivy support to the gtags layer
It would be much better to have a single function for each layer that
initializes ggtags, helm-gtags and counsel-gtags for a mode.
2017-12-17 22:03:01 -05:00
Tony Lotts 4c4a1a4e13 Improvements to Haskell REPL bindings.
- Consistent REPL switch to/back bindings (Swap ", s S" and ", s s").
- Switch back to buffer from Intero REPL.
2017-12-01 19:05:48 +02:00
Leon Isenberg 617c44ecc6 Fix: company-dante -> dante-company 2017-10-15 11:08:01 -04:00
JAremko 06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
JAremko 106f98497e Update README.org template
Replace some local Org links with GitHub ones
2017-07-23 01:22:20 +03:00
Eivind Fonn f4b53d2a4f Rename :depends to :requires 2017-07-03 09:54:53 +02:00
syl20bnr e2e532bb49 core: change <function>p to <function>-p suffixes for consistency
Also defined aliases for backward compatibility with `usedp` functions.
2017-07-02 10:09:39 -04:00
Eivind Fonn 08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
Doug Beardsley 07eb1050be Mention dante in a few places where it was missing 2017-06-20 19:07:41 +02:00
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
William Casarin 5dbc758499 haskell: Add all haskell-mode keybindings to literate-haskell-mode 2016-02-16 23:30:40 -05:00
William Casarin dbf0fa3a9a haskell: update broken hoogle-lookup-from-local
It was renamed to haskell-hoogle-lookup-from-local in:

44b5420829 (diff-7d97c622509a7bc5ed311b9ef7719095R110)
2016-02-14 23:18:10 -05:00
Eivind Fonn e9f8377b92 Tweak flycheck loading process 2016-01-31 23:04:48 -05:00
William Casarin 362b6998cf haskell: add helm-hoogle, bind to mhf 2016-01-18 00:28:00 -05:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
Chris Barrett de4c7502c0 Remove reference to undefined fn haskell-cabal-hook
Resolves #4512
2016-01-11 01:13:10 -05:00
syl20bnr cddf18ff1e Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00
Fabien Dubosson 6cb7399cac Change `SPC f e h` to `SPC h SPC` for helm-spacemacs default binding
This make `SPC h SPC` as default binding for accessing `helm-spacemacs`,
by either A) changing all the documentation; and B) adding a deprecation
message for `SPC f e h`.

The deprecation use a warning, because if a message is used it's hidden
directly when the helm buffer is shown, making it nearly unnoticeable
for the user.
2016-01-03 22:23:12 -05:00
Bjarke Vad 5c92f7dc2c [haskell-layer] Fixed ghci-ng for stack projects 2016-01-03 22:23:12 -05:00
Eivind Fonn dee5d7369c Fix haskell SPC mht and SPC mhi 2015-12-29 17:33:33 +01:00
Eivind Fonn ac0ba50154 Make flycheck/flyspell hooks more explicit 2015-12-11 02:08:55 -05:00
Joe Hillenbrand 310a6c9a9c haskell: haskell-process-load-or-reload is obsolete
Fixes:

    `haskell-process-load-or-reload' is an obsolete command (as of
 2015-11-14); use `haskell-process-load-file' instead.
2015-12-11 02:06:26 -05:00
justbur 899123258a keys: Don't specify C-i as a binding key
(kbd "C-i") == (kbd "TAB") so for consistency sake we always bind to TAB
by convention.
2015-12-05 13:18:37 -05:00
Sebastian Wiesner dc9459305e haskell: Fix command name 2015-12-03 23:54:57 -05:00
Eivind Fonn c893383fe4 Fix some documentation bugs
- CSS links
- GIFS in published version
- Unify layer doc titles
- Change emoji layer emojis to an image
2015-12-03 23:50:29 -05:00
Boris c9de044549 fix typo in haskell readme
Sorry, someone just told me that this script is not working :-P
2015-12-03 13:52:43 +01:00
d12frosted 4b9b61e5a0 [haskell] fallback to interactive mode
When user disabled ghc-mod, haskell mode should fallback to interactive
mode, so type bindings (and some others) are working properly. It's also
useful for ghci-ng users, but doesn't affect ghci-ng-only bindings.

Fix #3777
2015-11-23 20:23:11 +01:00
justbur 9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
Eivind Fonn c3866382b2 Documentation update
- Add #+HTML_HEAD_EXTRA options to all org files
- HTMLize published documentation via CSS
2015-11-13 14:23:13 +01:00
taksuyu b811475077 Restructured haskell/init-haskell-mode settings 2015-11-10 22:47:16 +01:00
d12frosted 2670d01a78 [haskell] configure C-c C-l so it doesn't error
By default `C-c C-l` shows following error:

```
haskell-mode-enable-process-minor-mode: Run ‘C-h f haskell-mode‘ for instruction how to setup a Haskell interaction mode.
```

Which might confuse users and they might end up setting
interactive-haskell-mode, which in most cases not what we want.

Also, it gives short key binding for emacs-only editing style users to
bring up REPL.
2015-11-09 19:29:29 +01:00
Matthías Páll Gissurarson 9714644a8f added keyboard shortcuts for ghc-mod in haskell 2015-11-06 14:53:00 +01:00