Commit graph

79 commits

Author SHA1 Message Date
gdkrmr
4af499588a fix java layer 2018-08-09 23:02:16 +01:00
syl20bnr
3f47bf8e11 Move major specific error key bindings to SPC m E prefix
Also add a convention for it.
2018-08-09 23:02:16 +01:00
JAremko
6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
Bjarke Vad Andersen
ebd8bffbad scala/java: Remove broken ensime key bindings and fix yanking types 2018-07-10 23:45:33 +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
Michael Rohleder
24ca355b6a add org-babel support for some of the more popular languages. (#10738)
* add org-babel support for some of the more popular languages.
* alphabetical sorted package names.
* removed blank lines at EOF.
2018-05-30 09:07:21 -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
ac4b2686b4 java: enable flycheck for meghanada backend only if possible 2018-05-13 22:39:17 -04:00
syl20bnr
0877f2f92a typescript, java: use new :append-hooks and :call-hooks
This is necessary as we use hack-local-variables-hook to setup the backends,
at this time it is too late to setup hooks, we need to call the function right
away.
2018-05-12 02:33:52 -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
EMayej Bee
971719f55c fix(java): typo 2018-03-04 10:28:12 +08:00
syl20bnr
3731d0d3fc Move major specific error key bindings to SPC m E prefix
Also add a convention for it.
2018-03-03 16:45:00 -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
JAremko
6397abe2ff Fix Java layer README 2018-02-28 04:58:24 +02: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
Alexander Kjeldaas
adfccb147b Added gradle instructions. 2017-12-17 18:58:17 -05:00
syl20bnr
4c7bd2fde1 java: make java layer depend on groovy layer 2017-12-17 18:45:46 -05:00
syl20bnr
17fc89f9e7 java: improve maven and gradle support (also for groovy)
Add new packages `mvn` and `maven-test-mode`.
Move `gradle-mode` configuration from groovy layer to java layer
New prefix commands `SPC m m` for maven and `SPC m l` for gradle.
Make maven and gradle commands available in java-mode.
Update documentation.
2017-12-17 18:45:46 -05:00
Joao Azevedo
d947556406 Add ENSIME jump handlers to the proper modes
Move scala handler to scala layer
2017-12-17 15:24:47 -05:00
smile13241324
1df1a06d5b Fix documentation for java, major-modes and purescript layer 2017-12-03 17:55:27 +02:00
syl20bnr
8a5771559e core: change scope of elpa stable variables
make them public when they are used outside of core-configuration-layer.el
make them private when they are used only on this file.
2017-11-01 23:23:34 -04:00
syl20bnr
a496401e1f Move groovy configuration to its own layer and improve it
Enable company, org babel and repl.
2017-08-28 13:49:09 -04:00
JAremko
06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
Dela Anthonio
7e57b1f341 java: Add missing key bindings to README 2017-07-10 09:38:44 +02: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
Eivind Fonn
4178a3de6e Add defalias for ensime-type-at-point 2017-06-21 10:07:55 +02:00
Joao Azevedo
61737e6d79 Replace usage of ensime-print-type-at-point by ensime-type-at-point
The `ensime-print-type-at-point` method was recently renamed to
`ensime-type-at-point`. This fixes the method call.
2017-06-21 10:03:00 +02:00
Dela Anthonio
2c2d7fe038 java: Add eclim-java-new keybinding
This commit addresses #8987.
2017-06-12 12:21:05 +02:00
Diego Alvarez
dfa18dafc3 Make ensime use stable version as unstable is for ensime devs 2017-05-24 12:22:20 +02:00
JAremko
6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
WillianPaiva
e1e091eee8 add a keybind for the function eclim-java-run-run 2017-05-18 23:12:56 -04:00
Robert (Robby) O'Connor
097f341eac Fix typo in java layer README 2017-05-18 18:53:08 +02:00
syl20bnr
bff206af37 Fix last documentation errors
Should be good now :-)
2017-05-14 23:05:26 -04:00
syl20bnr
8ece2fd1f2 Fix documentation error reported by Travis 2017-05-14 22:56:42 -04:00
Diego Alvarez
6a55eba49b evilify ensime search in insert/normal mode 2017-05-14 13:44:44 -04:00
JAremko
c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
syl20bnr
7554affd49 Remove additional CUSTOM_IDs from docs 2017-04-17 19:36:38 -04:00
Robert O'Connor
df6333d55c When using the meghanada backend with java, there is a small typo
In the compile prefix, there is a typo.
2017-04-16 11:14:59 -04:00
Tor Hedin Brønner
6885863e8b java: Update ensime documentation 2017-03-26 13:31:17 -04:00
syl20bnr
c9d332fbf1 java: refactor documentation to put meghanada first 2017-03-19 13:24:05 -04:00
syl20bnr
f86c55f499 Remove SPC m e bindings since Flycheck is not integrated
Use the general key bindings SPC e e, SPC e n, SPC e p, SPC e l...

SPC m e e is now for error correction.
2017-03-19 12:40:36 -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
dd85084826 java: multiple backends support
Define multiple dispatch functions for each service:
- spacemacs//java-setup-backend
- spacemacs//java-setup-auto-completion
- spacemacs//java-setup-syntax-checking
- spacemacs//java-setup-spell-checking
- spacemacs//java-setup-eldoc

java: replace ensime-configure-keybindings function by a variable

It's not convenient to have key bindings in funcs.el file, instead of relying
on a function we define a private layer variable java--ensime-modes which
can be updated by other layers using a :pre-config use-package hook.

java: refactor key bindings

- define key bindings for meghanada back-end
- move ensime key bindings documentation from scala layer to java layer
- change SPC m d for daemon to SPC m D (since SPC m d is reserved for debugging)
2017-03-19 12:40:36 -04:00
syl20bnr
04790f515d java: move command prefixes definition to funcs.el 2017-03-19 12:40:36 -04:00
syl20bnr
c552c35a77 java: add groovy and gradle packages 2017-03-19 12:40:36 -04:00
syl20bnr
40b996edff java: delete ensime layer and import it into java layer
Make scala layer depends on java layer.
2017-03-19 12:40:36 -04:00
Tor Hedin Brønner
824356b679 Enable ensime completions properly for java 2017-03-19 12:40:36 -04:00