Commit graph

313 commits

Author SHA1 Message Date
syl20bnr
c2de2271eb Move page-break-lines to spacemacs-bootstrap 2016-05-14 11:57:28 -04:00
syl20bnr
cf202d60f3 Move undo-tree and ws-butler to spacemacs-editing 2016-05-14 11:57:28 -04:00
syl20bnr
f959bc4b19 Move popup, popwin, fill-ci, hl-todo to spacemacs-ui-visual 2016-05-14 11:57:27 -04:00
syl20bnr
3f2bdcc03b Move restart-emacs to spacemacs-ui 2016-05-14 11:57:27 -04:00
syl20bnr
7d25e9dab4 Move some evil related packages to spacemacs-evil 2016-05-14 11:57:27 -04:00
syl20bnr
bb2e582703 move diminish to spacemacs-bootstrap
Also cleanup diminish init function
2016-05-14 11:57:23 -04:00
Eivind Fonn
975b83b68b Diminish visual-line-mode as L
See discussion in #5894
2016-05-06 10:09:44 +02:00
Martin Yrjölä
169d6873c9 Disable large file check for certain major-modes
Introduce a variable spacemacs-large-file-modes-list to determine these
modes.
2016-05-05 13:00:34 +02:00
Xiao Hanyu
6d2de9ebcb Diminish setting for visual-line-mode. 2016-05-05 12:52:08 +02:00
Kalle Lindqvist
865773c04b Fix tramp history file path
The variable 'tramp-persistency-file-name' is supposed to be a filename,
currently it is pointing to a directory which means tramp will not be
able to save and reuse connection information.
2016-05-05 12:51:07 +02:00
Eivind Fonn
7383bac3a3 SPC cd: close more compilation windows 2016-05-05 12:50:27 +02:00
Christoph Paulik
421cb62783 Fix showing of indicators in the fringe.
Fix #5510
2016-04-29 18:27:08 -04:00
Szunti
dacd5e2544 Don't mark request pacakage as built-in.
It's not a built-in package and this prevented updating. Fixes #5523.
2016-04-21 21:13:22 -04:00
Eivind Fonn
d0ae648ff3 Normalize keymaps in visual line toggle 2016-04-21 21:10:41 -04:00
Eivind Fonn
ba7254f522 Fix transparency transient state docstring 2016-04-21 21:04:52 -04:00
syl20bnr
b123b21498 Add elm-mode to sensitive mode for auto-indent on paste 2016-04-17 12:59:30 -04:00
Joe Hillenbrand
af6f3d0d87 Bind SPC p T to projectile-test-project
The purpose of `projectile-find-test-file` is not obvious
and it is not applicable to all languages.

Actually running the tests seems like a more useful and intuitive binding.
2016-04-17 00:37:47 -04:00
sooheon
09098c09cf Set popwin config for Help buffer :noselect t
Fixes issue #5546. Does not change behavior when calling help directly,
as with describe-function or describe-variable.
2016-04-13 00:09:18 -04:00
Eivind Fonn
052896e782 Fix ace-delete-window bindings 2016-04-12 23:02:03 -04:00
Dominique Bégin
e243454de3 Add keybinding for rotating windows backwards 2016-04-12 22:49:56 -04:00
Daniel Luna
e0fd4f5cd3 <SPC> f y working in dired buffers 2016-04-11 20:57:54 +02:00
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
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
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
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