Commit graph

90 commits

Author SHA1 Message Date
Diego Alvarez
9cb0c1e109 Use new command to generate config
Old command doesn't exist anymore
2016-05-27 00:32:05 -04:00
Eivind Fonn
3d0787baa2 scala: Clean up README 2016-05-06 13:35:30 +02:00
Eivind Fonn
3a6db330a8 scala: Remove superfluous variable 2016-05-06 13:35:10 +02:00
tintin
eabd3b859b Add java-doc-style config to scala layer 2016-05-06 13:32:03 +02:00
syl20bnr
07852abad5 Format documenation files with doc-fmt tool 2016-04-12 23:31:38 -04:00
Fabien Dubosson
23ce5aee84 Justify a paragraph in the scala README 2016-04-05 12:55:31 +02:00
Channing Walton
12b2de9032 Correcting scala-enable-eldoc-mode to scala-enable-eldoc 2016-04-05 12:54:45 +02:00
syl20bnr
99d9993171 Scala: fix ensime-typecheck-current-file to ensime-typecheck-current-buffer 2016-04-04 21:52:45 -04:00
syl20bnr
07b3bb051e scala: lazy load sbt-mode 2016-04-03 00:35:35 -04:00
Diego Alvarez
9b460f60e4 Add function to insert types and add yank type at point
- `, i y` Add function to yank type at point but just yank type name without full
package

- `, r a` Add function to insert type for declaration,
see `https://github.com/ensime/ensime-emacs/pull/390/files`
2016-04-01 00:26:20 -04:00
syl20bnr
b891e82362 scala: reformat TOC of README.org 2016-04-01 00:26:20 -04:00
Channing Walton
7466fdc678 optionally enable ensime
a new variable, scala-auto-start-ensime, determines if ensime starts
when a scala file is loaded.

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space
2016-04-01 00:26:19 -04:00
syl20bnr
3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
syl20bnr
82fdd9a511 Use evil in holy-mode
Motivation

While disabling Evil in holy-mode makes its implementation shorter and
sounds elegant on the paper, in practice it puts a big burden on the
configuration parts which need to know if Evil is enable or not. This is
a bad separation of concerns and the bunch of fixes that we were forced
to do in the past weeks shows this issue. Those fixes were about
removing the knowledge of the activation of Evil by implementing new
dispatching functions to be used by layers, this is cumbersome and makes
Spacemacs layer configuration more subtle which is not good. There was
additional bad consequences of the removal of Evil state like the
impossibility to use Evil lisp state or iedit states, or we would have
been forced to implement a temporary activation of Evil which is
awkward.

Instead I reintroduce Evil as the central piece of Spacemacs design thus
Evil is now re-enabled in holy-mode. It provides the abstraction we need
to isolate editing styles and be able to grow the Spacemacs
configuration coverage sanely. Layers don't need to check whether the
holy mode is active or not and they don't need to know if Evil is
available (it is always available). We also don't need to write
additional dispatching functions, this is the job of Evil, and I think
it provides everything for this. Ideally configuration layer should be
implemented with only Evil in mind and the holy-mode (and hybrid-mode)
should magically make it work for Emacs style users, for instance we can
freely use `evil-insert-state` anywhere in the code without any guard.

Evil is now even more part of Spacemacs, we can really say that
Spacemacs is Emacs+Evil which is now an indivisible pair. Spacemacs
needed this stable API to continue on the right track.

While these changes should be rather transparent to the user, I'm sorry
for this experimental period, I failed to see all the implications of
such a change, I was just excited about the possibility to make Evil
optional. The reality is that Spacemacs has to embrace it and keep its
strong position on being Emacs+Evil at the core.

Implementation

- insert, motion and normal states are forced to emacs state using an
advice on `evil-insert-state`, `evil-motion-state` and
`evil-normal-state` respectively. These functions can be used freely in
the layer configuration.
- A new general hook `spacemacs-editing-style-hook` allow to hook any
code that need to be configured based on the editing style. Functions
hooked to this hook takes the current style as parameter, this
basically generalize the hook used to setup hjkl navigation bindings.
- ESC has been removed from the emacs state map.
- Revert unneeded changes
  - Revert "evil: enter insert-state only from normal-state"
    commit bdd702dfbe.
  - Revert "avoid being evil in deft with emacs editing style"
    commit f3a16f49ed.

Additional changes

All editing style packages have been moved to a layer called
`spacemacs-editing-styles`

Notes

I did not have time to attack hybrid mode, I should be able to do it
later.
2016-03-13 21:16:55 -04:00
Eivind Fonn
5360fb31f8 Fix broken ensime refactor bindings 2016-03-04 16:06:22 -05:00
Eugene Apollonsky
e5e069bbf0 Rename: ensime-refactor-inline-local -> ensime-refactor-diff-inline-local 2016-03-01 18:46:54 +01:00
Alejandro Catalina
bdd702dfbe evil: enter insert-state only from normal-state 2016-02-23 20:42:59 +01:00
Jerry Peng
14e090af19 scala: support replacing ascii arrows with unicode ones
Add a configuration option `scala-use-unicode-arrows` to
the scala layer, which when enabled replaces `->`, `=>`
and `<-` with corresponding unicode characters (Scala
supports unicode arrows natively).
2016-02-01 00:14:59 -05:00
Eivind Fonn
e29ac21345 Register all REPLs and make SPC m ' bindings 2016-01-31 23:39:25 -05:00
Balaji Sivaraman
2b1ed603dc Change all references of micro-state in codebase to transient-state 2016-01-31 23:04:47 -05:00
syl20bnr
046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
syl20bnr
cddf18ff1e Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00
Sebastian Wiesner
f707993d2e scala: Fix typo in variable name
Sorry :(
2016-01-05 00:44:10 -05:00
Sebastian Wiesner
c8e1ee0026 scala: Automatically insert asterisk in multiline comments 2016-01-03 22:23:11 -05:00
Sebastian Wiesner
ffb4eded3a Keep cleaning up whitespace in scala-mode
Remove the advise around scala-indent
2016-01-03 22:23:11 -05:00
Diego Alvarez
adc9f6cda0 Update Readme with latest ensime-sbt version
Added a note to use sbt 0.13.9 and remove unnecessary sonata repository
from the instructions.

Finally removed a link to a non existent page and added a link to
ensime-sbt GitHub page for further instructions.
2015-12-04 00:06:10 -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
Diego Alvarez
bf0d4dc397 Fix period from triggering complete
Fixes https://github.com/syl20bnr/spacemacs/issues/2702
2015-11-27 10:32:51 +01:00
Eivind Fonn
ddcc697213 Clean up scala-eldoc code 2015-11-23 20:09:57 +01:00
Diego Alvarez
a92cf03093 Disabled automatic eldoc-mode in scala layer
A conf var is provided to enable it automatically.
Default is null.
2015-11-23 20:06:39 +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
Sebastian Wiesner
1a7bc42089 scala: Enable Ensime’s Expand Region integration
See https://github.com/ensime/ensime-emacs/pull/263
2015-11-03 00:00:55 -05:00
Sebastian Wiesner
02542d6996 scala: Fix bindings for Ensime test commands 2015-11-03 00:00:55 -05:00
Eivind Fonn
13c5b1d24b Convert documentation to publishable format 2015-11-01 23:40:29 -05:00
Sebastian Wiesner
7a7300ac42 Declare prefixes for Ensime keybindings 2015-10-21 17:29:39 -04:00
Sebastian Wiesner
6a60346b72 Only disable scala syntax checker in Ensime
Flycheck also includes a scalastyle syntax checker which is still
useful because Ensime doesn't have scalastyle support.
2015-10-18 22:12:28 -04:00
Sebastian Wiesner
cc9f1c1065 Bind mbb to sbt-command in scala layer
Provides a shortcut to run arbitrary SBT commands from scala mode
buffers
2015-10-14 00:29:30 -04:00
person808
c1b6293268 Replace eval-after-load with with-eval-after-load.
We now backport the macro for 24.3 so we can use it everywhere.
2015-10-07 15:51:39 -04:00
justbur
6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00