Commit graph

390 commits

Author SHA1 Message Date
Eivind Fonn 9b60b133ad Add documentation to transparency TS 2016-04-08 17:43:18 +02:00
sooheon b77b541e3a Allow = to be used to increase transparency
-,= is easy to go back and forth, without needing to press shift for +.
2016-04-08 17:39:33 +02:00
zilongshanren 61115f3e6b remove duplicated configs of eldoc 2016-04-07 23:01:33 -04:00
Dennis Hamester b18ccaaa29 Fix next-error behavior when flycheck is active
spacemacs/{next,previous}-error will now call {next,previous}-error when
a compilation buffer is visible.
2016-04-07 22:58:36 -04:00
syl20bnr b1a41ce2ce
bootstrap: explicitly require evil 2016-04-07 22:11:22 -04:00
d12frosted 8b0c69c8cd
move org essentials to spacemacs distro 2016-04-07 22:11:22 -04:00
Fabien Dubosson f651969d12 Use use-package to define autoload of dired-x
This also add autoload for `dired-omit-mode` which fixes #5705
2016-04-08 00:32:06 +02:00
Eivind Fonn 7a0328929c Fix Y-y$ remapping 2016-04-07 15:16:27 +02:00
syl20bnr 09ff77fbd4 Make it possible to use spacemacs-bootstrap layer as a distribution 2016-04-06 13:12:13 -04:00
Eivind Fonn bb46ced71c Fix bookmark binding conflict 2016-04-06 11:28:24 +02:00
Fabien Dubosson 481c196cd5 Fix deer binding being overlapped by dired 2016-04-05 13:04:51 +02:00
Allen Li 7ca64553ed Fix dired-x dired-jump autoload 2016-04-05 12:59:33 +02:00
Fabien Dubosson 57e91fe035 Correct more <SPC> to SPC 2016-04-05 12:52:54 +02:00
Fabien Dubosson d6202d3f33 Reorder projectile-replace-regexp alphabetically 2016-04-05 12:38:43 +02:00
d12frosted 5212e5539e add key binding for projectile-replace-regexp
Following https://github.com/bbatsov/projectile/pull/977
2016-04-05 12:37:53 +02:00
Allen Li e037dcdc51 Set SPC f b to bookmark-jump
helm will overwrite this with its own command, but people not using
helm (only ivy at the moment) will need this defined.
2016-04-05 12:33:19 +02:00
Muneeb Shaikh 25abc07359 hybrid: evilify supporting buffer as default
Fix #5645
2016-04-04 22:24:37 -04:00
syl20bnr ec35ede5b6 Fix move selected text up and down in visual state 2016-04-04 21:43:30 -04:00
syl20bnr d60228219f core: ensure quelpa is available when installing packages 2016-04-03 02:51:01 -04:00
syl20bnr 8e897f6b7b core: new layer spacemacs-bootstrap and new package :step
New package :step 'bootstrap', this step happens before 'pre' packages.
A new layer names 'spacemacs-bootstrap' gather all the ':step bootstrap'
packages. This layer is special and is always the first element of
the variable 'configuration-layer--layers' which assure that all
bootstrap packages are configured first.

This new layer leverages the configuration layer system, removes the
clutter of package installations in the function 'spacemacs/init' and
isolate the bootstrap packages in one place.
2016-04-03 00:28:47 -04:00
syl20bnr 173e2a5421 Move all prefix names from config.el to init functions 2016-04-03 00:12:28 -04:00
syl20bnr f1ddbd1f3e move toggle stickyfunc to SPC T S and SPC T C-S 2016-04-01 00:26:20 -04:00
Aaron Jensen ed5bdf9db8 Enable OSX non-native fullscreen on regular builds
The mac port build supports this out of the box, but the version
installed with `brew install emacs --with-cocoa` requires this variable
to be cleared.
2016-04-01 00:26:20 -04:00
d12frosted 98b329e741 move system-is-* function to core 2016-03-31 00:23:59 -04:00
syl20bnr 9368cba427 Update windows transient state docstring 2016-03-24 00:49:46 -04:00
syl20bnr f48b251968 Delete SPC j b and move SPC j u to SPC j b
By convention, jump back should be on `b`, not `u`
Since `SPC j u` is free, move as well `SPC j U` to `SPC j u`.

`SPC j b` for bookmark jump is already available under `SPC f b`
2016-03-21 20:02:56 -04:00
syl20bnr b697571021 Revert default value of hybrid-mode-default-state to normal 2016-03-17 17:43:10 -04:00
Eivind Fonn 6d5f55f09e Fix evil-inner-buffer text object 2016-03-17 09:15:06 +01:00
syl20bnr 50ff429f81 Set hybrid-mode-default-state default value to hybrid 2016-03-16 23:41:45 -04:00
syl20bnr ca5b8be90b New hybrid mode variable hybrid-mode-enable-evilified-state
When non nil then evilified buffer use evilified state, otherwise
they use the emacs state (may put the hybrid state if users get
confused).
2016-03-16 23:34:20 -04:00
syl20bnr 2d61e5304e core: add support for :variables keyword in dotspacemacs-editing-style
Add variable `hybrid-mode-enable-hjkl-bindings` to enable hjkl
navigation in hybrid mode.

example:

dotspacemacs-editing-style '(hybrid :variables
                                     hybrid-mode-enable-hjkl-bindings t
                                     hybrid-mode-default-state 'normal)
2016-03-16 22:43:50 -04:00
syl20bnr c2296f71f8 Put back holy and hybrid in spacemacs base layer
They are not optional
Also fixes some bugs like toggling hybrid mode from holy mode and
toggling off the hybrid mode.
2016-03-16 21:59:44 -04:00
syl20bnr cfdfcfab40 Revert hybrid mode to use an evil hybrid state
To follow with the refactor of the holy-mode which uses the
emacs state of evil mode, the hybrid mode now uses the evil hybrid
state.

We have now a clean symmetry between all the editing styles where each
of them has an associated state:
- vim = insert state
- emacs = emacs state
- hybrid = hybrid state

This gives consistent properties to all editing styles and most
importantly allows to have true isolation of key binding maps. It has
the huge benefit to be easier to explain since now everything can
leverage the evil API regarding key bindings.

Note: Regular Emacs key binding functions can still be used for emacs
and hybrid states so there is no regression with the previous
implementation, we just gain better isolation at the cost of a few
duplicated lines of code which will be easy to update as needed if
evil upstream code changes (this code has been commented with a link
to the upstream code).
2016-03-16 21:30:03 -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 ee6e84de10 Enhance compilation keybindings
- Make sure to defer after load of compile
- Use `gr' instead of `g' for recompilation
2016-03-12 17:49:20 +01:00
denin a4ce07dd12 restore evil-binding of 'g' key in a compilation buffer
By default, recompile is bound to 'g' in compilation buffer.
It was rebound to 'r' key.
2016-03-12 17:47:18 +01:00
Fabien Dubosson 68e88df3c8 Correct SPC q D prompt and simplify the function 2016-03-12 17:46:31 +01:00
Eivind Fonn 47789270d9 Don't nest `when' 2016-03-12 17:45:41 +01:00
Muneeb Shaikh 6c17e3bc3a fix #5448: guard nil buffer size 2016-03-11 17:00:13 +05:30
syl20bnr d52eb414bb Remove dotspacemacs-use-ido
Users should now bind ido commands themselves.
2016-03-10 23:13:19 -05:00
ralesi 3f376a431b Prompt to open file literally when opening large files. 2016-03-10 23:13:19 -05:00
sooheon ec3bbd4176 Use evil-define-minor-mode-key over define-key
This keeps the keybinding specific to the visual-line minor mode, and
fixes #5418. Reverting the bindings on the :off toggle is no longer
necessary as well, turning off visual-line-mode will handle it.
2016-03-10 23:12:35 -05:00
Jeremy Bi 343b7ac1d0 projectile: autoload projectile-project-p
Fix #5127
2016-03-09 20:14:21 -05:00
sooheon fa52c93078 Keep escape binding in evil-visual-state default
While seemingly equivalent, this binding change can cause brittle
behavior in at least one case (used in conjunction with
multiple-cursors). Such a highly niche customization would probably be
better in a personal config, unless a case can be made that all
spacemacs users would benefit.
2016-03-09 20:12:48 -05:00
Muneeb Shaikh 6fee0a3666 change insert map only for vim editing style
For now, prevent cluttering hybrid insert state map until there's
cleaner solution.
2016-03-09 20:01:37 -05:00
NJBS 9026652dcf Fix scrolling transient state keybindings typo 2016-03-06 19:50:49 -05:00
justbur d28537ec86 evilified: Remove stray bind-map declaration
It looks like it was not removed when the other one in the file was
added.
2016-03-03 20:53:42 +01:00
Eivind Fonn 65702c9285 Fix smart doc and goto rewrite 2016-03-03 20:36:34 +01:00
justbur ca72561bc7 evil: Rewrite smart-doc-lookup and smart-goto-binding
Prefer checking explicitly for the key binding rather that using
condition-case and assuming all errors are related to a missing binding.
2016-03-03 20:30:32 +01:00
justbur 39e06feba9 Use unless-debug version of condition-case
It's not possible to get full backtraces in these instances when an
error is signaled, and I think we should generate full backtraces when
debug-on-error is enabled as a general rule.

I had to make this change at one place to track down the root of problem
2 in #5200.
2016-03-03 20:30:30 +01:00