Commit graph

476 commits

Author SHA1 Message Date
Eivind Fonn cb17b2773b Add some more :depends keywords 2017-07-02 09:41:38 -04:00
JAremko 907306a117 optimize space-doc-mode 2017-06-25 00:14:29 +03:00
JAremko ff333c3c3e Add pretty docs option to .spacemacs 2017-06-23 22:29:31 +03:00
JAremko d2b3498003 space-doc-mode improvements 2017-06-23 22:29:15 +03: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
tddsg e2b49da274 pupo: option to split the active window or the entire frame 2017-06-21 09:38:50 +02:00
duianto e7f6475658 Workspaces transient state: create workspace keys
Problem:
Creating a new workspace from the workspaces transient state, requires that one
first looks for the next available workspace number, and then presses that
number key.

Solution:
Add the keys: `c` and `C` to create a new workspace. Lowercase exits the state
and uppercase keeps it open.

Notes:
This matches the behaviour of 0..9, which exits the state, and C-0..C-9, which
keeps it open.

This is the last key/command, from the C-c C-w eyebrowse key bindings, that was
missing from the workspaces transient state.
2017-06-18 19:12:49 +02:00
Eivind Fonn df3ca63247 Rename ido ms -> ts 2017-06-18 12:54:47 +02:00
Diego Berrocal 37eed0af8f Add C-S-(J|K) to helm-follow-action
I noticed that one can go down and up with `C-j` and `C-k` but
helm-follow-action bindings are M-down or M-up, which is not EVIL at all
2017-06-15 13:35:39 +02:00
Eivind Fonn 4f13269642 undo-tree: fix left/right bindings 2017-06-15 10:23:09 +02:00
Eivind Fonn 1653368f56 undo-tree: evilify 2017-06-13 12:31:56 +02:00
ralesi 7355da1d79 undo-tree: evil bindings for visualizer and window improvements 2017-06-13 12:01:28 +02:00
deb0ch 0dbfbd40ed bindings: improve buffers listing bindings
- bind spacemacs-layouts/non-restricted-buffer-list to SPC b B instead
of SPC B b
- rename buffer listing functions in which-key to be more explicit

PR title:

bindings: non-restricted-buffer-list-* to SPC B b instead of SPC B b

PR message:

I don't know what was the thought behind this, but `spacemacs-layouts/non-restricted-buffers-list-*` was alone in its `SPC B` prefix and `SPC b B` was almost free, only used in one layer that I would be surprised if it was widely used (`ibuffer`).

I also renamed buffers listing functions in `which-key` to be clearer for the user. Indeed, I find that names like `helm-mini` are pretty obscure and kind of defeat the purpose of `which-key` and `spacemacs-layouts-non-restricted-buffer-list-blah` was so long that it couldn't even be displayed.

Now the user can choose between `list-buffers` or `global-list-buffers` for listing buffers.
2017-06-12 12:46:35 +02:00
duianto c6fda1a1d4 string-inflection: group which-keys, sort code/doc
Group together the which-key entries that call the same command:
k and - becomes k,-
u and _ becomes u,_

Declare a prefix name for SPC x i, this changes the SPC x entry:
from: "i -> +prefix"
to: "i -> +inflection".

Capitalize the transient state title, so that it matches the other TS titles.

Sort the code and documentation key bindings alphabetically.
2017-06-12 12:32:46 +02:00
Nicholas Ochiel eb5e6ed920 Fix issue #8823: evil-paste-pop doesn't work
previous command was not an evil-paste.
2017-06-12 12:29:39 +02:00
Eivind Fonn 2db9958894 string-inflection: transient state for cycling 2017-06-10 16:31:05 +02:00
Keith Wygant 8a2c22a0c9 Add 'xi_' and 'xi-' to `string-inflection' bindings
'xi_' for underscore
'xi-' for kebab
2017-06-10 16:25:49 +02:00
Jonas Strømsodd ec5b8adda8 Add require of avy in spacemacs/ace-buffer-links
To mitigate void definition error
2017-06-10 16:12:34 +02:00
Eivind Fonn 67cbfbdb62 spacemacs-navigation: move defuns to funcs.el 2017-06-07 17:16:29 +02:00
braham 1dd0942745 spacemacs/evil-mc-paste-{before,after}: fix multiple cursor paste
* restore these functions' signatures to those of their stock evil
  counterparts (evil-paste-{before,after}), allowing
  `evil-mc-execute-evil-paste` to paste at each cursor when there
  are multiple instead of pasting at only one cursor

* retain these functions' ability to directly take a register as
  input when called interactively

* regression was caused by bfb565eea9
2017-06-06 12:19:49 +02:00
Eivind Fonn d4b004433c Fix layout name generation 2017-05-25 13:51:26 +02:00
bmag 6fd0d2573b New dotvariable: auto-generate layout names
If dotspacemacs-auto-generate-layout-names is non-nil, and the user
tries to open a layout in a position that doesn't yet have a layout,
then create a new layout with an automatically generated name.
2017-05-25 13:40:28 +02:00
Eivind Fonn 2b7893ee17 Fix #7383 2017-05-24 14:33:52 +02:00
Don March ac1168b6af Fix terminal RET and TAB in layouts/workspaces transient state
* Make RET and TAB (C-m and C-i) perform the same actions as <return>
  and <tab> so the maps work in the terminal.
* Catch <return> in workspaces transient state so that it exits without
  executing a command (like already done for layouts).
* Add "workspace w/helm/ivy" to docstring, mirroring the layouts
  docstring.
2017-05-24 14:05:15 +02:00
ralesi d28d9beed4 emacs-restart: make debugging commands accessible. 2017-05-24 13:53:19 +02:00
duianto aada9702dc init-evil-mc: 1 cursor hide mode line text variable
Problem:
Spacemacs rewrites the evil-mc-mode-line variable, to remove the evil-mc mode
line text, when there's only one cursor. The rewrite blocks the recent evil-mc
updates, that made the multi cursor, mode line text, more readable.

Solution:
Use the new evil-mc-one-cursor-show-mode-line-text variable, to only hide the
mode line text, when there's one cursor. This unblocks the current, and any
future updates, that the evil-mc package makes to the mode line text.
2017-05-24 13:32:25 +02:00
d12frosted c8296e507b don't show warning on layout key clashes 2017-05-24 13:09:17 +02:00
Pawan Dubey 83553a54da Move load layout from file option from Go To to Actions
and change doc string.
2017-05-24 12:55:35 +02:00
deb0ch 0ae8b3a29f bindings: highlight-parentheses-mode from SPC t C p to SPC t h p 2017-05-24 12:39:31 +02:00
ralesi e7d01304b8 ivy: define matcher desc, deprecated from package, add M-SPC 2017-05-24 10:00:53 +02:00
Eivind Fonn 909d23f412 Use symbols instead of strings 2017-05-23 16:04:40 +02:00
MadAnd 5eeaed75d9 transient-state: Improve handling of additional bindings
Add two new functions: `spacemacs/transient-state-register-add-bindings`
and `spacemacs/transient-state-register-remove-bindings` to prevent layer
authors and end users from dealing with the underlying variables' subtleties.
2017-05-23 16:03:03 +02:00
Eivind Fonn 5290456304 Modify evil-lion config
- Adjust keys not to collide with evil-little-word
- Add documentation
2017-05-23 11:08:06 +02:00
James Wang 3661ac1937 Add evil-lion 2017-05-23 11:02:23 +02:00
JAremko 6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
Eivind Fonn 488fc0977f Move editorconfig to spacemacs-editing 2017-05-19 11:43:29 +02:00
syl20bnr 7cd8e1fee5 Add password-generator package under SPC i p 2017-05-18 23:12:56 -04:00
Vladimir Kochnev 962cb03a85 Fix frame cycling in evil-unimpaired.
`raise-frame` does not set input focus on selected frame.
2017-05-18 18:34:56 +02:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
Robbert van der Helm bfb565eea9 Fix pasting ignoring register selection
Pasting in evil-mode has been broken since
`58458f2d2abcc1211444c2060ab598f55e518da4`, as `p` and `P` would always paste
from the unnamed register instead of the register selected with `"`. I've
removed the function's second parameter, as it wasn't being used anywhere.

Fixes #8759
2017-04-28 23:09:06 -04:00
syl20bnr d04012195a Remove highlight from ahs transient state
Highlight should already be done automatocally.
This highlight is not desirable because it breaks `n` and `N` search of
occurences and it breaks `:nohl:` as well making it impossible to revert an
highlighted word.
These drawbacks were maybe intentional since it was about highlighting
_permanently_ but it goes against principle of least astonishement, users will
be consufed about an highlight that cannot be reverted whatsoever.

We need an highlighting facility in Spacemacs, there was one at some point with
the package `hl-anything` but at the time it was buggy and removed from
Spacemacs (see layer spacemacs-editing-visual). Maybe we could try it again.
2017-04-23 19:47:08 -04:00
Adrian Staniec 29605f57eb add perm. highlight and swoop/swiper to Symbol Highlight Transient State 2017-04-23 19:42:32 -04:00
Ric da Silva c1e805cb46 Add string inflection to spacemacs-editing
Add string inflection doc
2017-04-17 23:31:58 -04:00
Abdo Roig-Maranges f216309a6c visual: improve colorization of compilation buffer
Lines containing a carriage return alone, followed by color escape
sequences, are not colorized properly.

A carriage return in the compilation buffer is interpreted by erasing
contents since the beginning of the line, but compilation-filter-start
is not updated accordingly before calling the filter-hooks.

Workaround it by always colorizing a region from to the beginning of the
line where compilation-filter-start points.
2017-04-17 22:30:56 -04:00
nikolaiam c657506331 Fix typos in space-doc.el 2017-04-17 22:11:41 -04:00
Aaron 589da14260 Fix spelling error in NeoTree Key Hints 2017-04-17 20:01:33 -04:00
MadAnd 1f8c41059a Fix signatures of spacemacs/evil-mc-paste-{after,before}
Fixes #8672
2017-04-12 23:20:04 -04:00
syl20bnr fc61280423 Fix zoom-frm
Fixes #8696
2017-04-12 23:09:17 -04:00
syl20bnr 6d2f66852c terraform: rename layer var. to terraform-auto-format-on-save, set it to nil
Set it to nil by default.
2017-04-12 00:04:38 -04:00
Leonard 806b39ca7a Fix #7644
persp-mode sets initial-buffer-choice to #[nil "�\207" [persp-special-last-buffer] 1] unless persp-is-ibc-as-f-supported is set to nil
2017-04-11 23:52:58 -04:00
syl20bnr bb57dc8cd9 Move symon to spacemacs-modeline layer 2017-04-11 23:36:13 -04:00
syl20bnr 30d7beb277 Refactor spacemacs-ui and spacemacs-ui-visual layers
Create new layers:
- spacemacs-navigation: contains packages whose principal goal is navigation
- spacemacs-modeline: contains packages about mode line

Merge spacemacs-ui and spacemacs-ui-visual into layer spacemacs-visual.
2017-04-11 23:09:35 -04:00
syl20bnr c17722ba96 Fix void: evil-mc-get-cursor-count when pasting
Fixes #8672
2017-04-10 23:40:14 -04:00
syl20bnr fed06956e3 Move evil-mc functions to funcs.el 2017-04-09 23:22:12 -04:00
Koray Al 58458f2d2a Disable paste transient state when multiple cursors are active
evil-mc has no support for the 'paste transient state', hence we should fall back
to the default version during that period.
2017-04-09 23:15:53 -04:00
syl20bnr 3f1bb43597 Move evil-declare-ignore-repeat to evil init function 2017-04-09 17:25:57 -04:00
Robbert van der Helm 98584205ce Fix repeating jumping to errors using the '.' command #8083
The unimpaired keybindings `[ q` and `] q` can be used to jump to flycheck
errors in the current buffer. Because evil-repeat treated them as regular
operations, they were repeated when pressing the `.` key. This made it harder to
rename multiple erroneous variables.
2017-04-09 17:21:52 -04:00
Codruț Constantin Gușoi 887eb9dc1e Adds the neotree-quick-look keybind
Weirdly, the `'` keybind for `neotree-mode-map` was already present when
doing `M-x neotree-quick-look` with the cursor on the neotree window but
I could not find where exactly it was defined.

This commit officially adds it to the `neotree-mode-map` and the neotree
transient state.
2017-03-26 13:27:19 -04:00
Robert O'Connor e9ff9f09c6 Remove trailing whitespace from all files 2017-03-26 13:06:43 -04:00
deb0ch 8226f0070f do not filter for alternating buffers 2017-03-24 22:29:52 +03:00
Arjun Urs b8c9100d3a Adding keybinding to jump to currently open file in neotree 2017-03-07 09:35:07 +02:00
duianto 92751fdcfb Update packages.el, remove trailing white space
My previous commit left behind a trailing white space.
2017-03-05 21:42:47 +02:00
syl20bnr 3072e72773 Replace use-package :diminish by spacemacs|hide-lighter 2017-02-13 08:38:37 -05:00
syl20bnr d5d80eb1a1 line-number: fix backward compatibility
There was an error in `linum-on` when `dotspacemacs-line-numbers` was set to
`'relative`.

- new function `spacemacs//linum-backward-compabitility` to test for old
supported values.
- Use an :around advice for `linum-on` instead of redefining it.
- move linum init time config to `:init` section of `use-package`
- fix relative linum initialization by testing if `dotspacemacs-line-numbers` is
  a list first.
2017-02-05 13:50:50 -05:00
deb0ch a28e17c4d3 line numbers: finer configuration of line numbers activation 2017-02-05 12:47:19 -05:00
d12frosted 1a5579db6f
unify transient states
- use `..` for listing
- use 2 spaces between groups
- use 1 space between key binding and action
2017-01-31 18:27:01 +02:00
syl20bnr 973f6fe5ae core: import ido-vertical-mode into core/libs
It provides more intuitive way to display the wizard.
2017-01-23 23:52:57 -05:00
deb0ch afbff1a943 restore emacs-style window selection bindings 2017-01-14 17:15:58 +02:00
nikolaiam 796fcfaa53 Hide PROPERTIES drawers in space-doc-mode
Hide properties in space-doc-mode to allow the use of `CUSTOM_ID` tags in
documentation for correct link exporting, as discussed in #8054, #8136
and #8138. Complementary the latter two PR:s.
2017-01-12 22:49:15 -05:00
syl20bnr 4b8f54ff38 Fix golden ratio for new package winum 2017-01-09 09:13:20 -05:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
deb0ch ae81e00db6
use winum.el for window numbers
winum.el is an heavily extended and partly rewritten version of
window-numbering.el.

Among other things it allows window numbers to be shared across frames,
thus improving multi-screen user experience.
2017-01-04 19:33:13 +02:00
syl20bnr 8ee74b6925 Remove debug message :-) 2017-01-02 11:12:43 -05:00
syl20bnr c558833e08 More robust fix for error ‘fuzzy-match’ not supported in async sources
Fixes #8094
2017-01-02 11:10:07 -05:00
syl20bnr a5ac11b832 Fix helm :config: ‘fuzzy-match’ not supported in async sources.
Fixes #8091
2017-01-02 01:36:15 -05:00
ralesi 703733b46b Speedup: defer loading of helm-purpose. Requires all of purpose. 2016-12-24 21:03:52 +02:00
Alex Palaistras a9dd47691e
dumb-jump: Specify selector from completion framework used
This commit adds a conditional which allows `dumb-jump` to use a selector
matching the current completion framework used (`ivy` or `helm`), instead
of the default popup. This relates to work done for adding Helm support
to `dumb-jump` here: https://github.com/jacktasia/dumb-jump/pull/96

The motivation behind this is two-fold: the fact that popups are known
to be broken when used with conflicting packages, such as `fci-mode` for
showing a column marker, and the need for better completions with the
possiblity for fuzzy-matching. This should hopefully lead to a more
consistent experience as well.
2016-12-18 11:47:56 +02:00
Joe Lane 43e199b6a5 add copy key to neotree
CHANGES
-------
Add new keybinding to neotree to allow the copying of nodes from the neotree
buffer. Update documentation as well.

WHY
-------
There appear to be all other common file operations bound to the neotree buffer,
however copying of a node is not.
2016-12-09 18:19:52 +02:00
Eivind Fonn 62ec37a9e4 Integrate ahs with evil as well as isearch 2016-11-09 21:40:43 -05:00
Diego Berrocal a6554a5773
Fix Typo in Purpose Layer 2016-11-02 21:29:40 +02:00
Carl Lange aa3a799c39 spacemacs-purpose readme - Fix links and typos
I think there was a failed replace here :) The links now work correctly and the typos are gone. Yay!
2016-10-28 09:07:10 +01:00
Bryan Gilbert b515253026 move helm specific layout transient state keybindings to helm layer 2016-10-23 19:44:35 +02:00
bmag e5c9632678 New dotvariable to control switch-to-buffer behavior
With a nil value for dotspacemacs-switch-to-buffer-prefers-purpose,
switch-to-buffer prefers using the current window, same as vanilla
Emacs. With a non-nil value, switch-to-buffer prefers another window
with the same purpose as the buffer. This affects actions like
spacemacs/alternate-buffer, and opening buffers from Dired.
2016-10-23 19:44:35 +02:00
bmag 15fc015088 purpose: disable kill extension
purpose-x-kill-setup sometimes slows Emacs down
2016-10-18 09:53:02 +03:00
syl20bnr 66d9f38a45 Add hide/show comments on SPC c h 2016-10-17 15:32:43 -04:00
duianto af3445950f Evil Nr TS, add 0..9 prefix and q quit
This implements the changes in: #7013
Add "[0..9] prefix" and "[q] quit", and separates the keys by 2 spaces.
2016-10-17 19:57:57 +02:00
deb0ch ddbee36ad6 Activating linum-relative now activates linum 2016-10-17 15:05:44 +02:00
bmag ed9637ee4b Properly override purpose-mode-map 2016-10-17 14:41:13 +02:00
bmag 3fc32063c7 Move vi-tilde aux functions to spacemacs-evil
spacemacs/disable-vi-tilde-fringe and
spacemacs/disable-vi-tilde-fringe-read-only are used by spacemacs-evil,
but were defined in spacemacs-ui-visual. Move the definitions to the
correct place.
2016-10-17 13:47:23 +02:00
bmag 0e1491c434 Make ivy restrict buffers to layout
Also create separate non-restricted-buffer-list (`SPC B b`) for helm and
ivy.
2016-10-17 13:45:43 +02:00
bmag 797b5b08b7 golden-ratio: add to window TS only when used 2016-10-17 13:43:54 +02:00
duianto 738451c2b8 fix neotree duplicate function comment
Both the spacemacs/neotree-expand-or-open and spacemacs/neotree-collapse
functions had the same comment: "Collapse a neotree node."

This renames the spacemacs/neotree-expand-or-open function to:
"Expand or open a neotree node."
2016-10-17 13:28:44 +02:00
Eivind Fonn e0202848fd Diminish purpose-mode 2016-10-17 12:01:10 +02:00
Eivind Fonn c24f59cc7e Fix some comments in purpose layer 2016-10-17 10:40:30 +02:00
Eivind Fonn 2a2fb56452 Fix spacemacs-purpose-popwin name 2016-10-17 10:07:29 +02:00
syl20bnr d023af2f55 purpose: use use-package :post-config hook for eyebrowse config 2016-10-16 22:25:04 -04:00
syl20bnr 8063bcb419 purpose: move helm-purpose config to use-package form 2016-10-16 22:25:04 -04:00
syl20bnr aea110df9f purpose: remove unecessary :commands block
The functions are already autoloaded.
2016-10-16 22:25:04 -04:00
syl20bnr c8827444ec purpose: move window-purpose key binding and mode activation to :init 2016-10-16 22:25:04 -04:00
syl20bnr e41a17be4c purpose: use use-package hook for popwin config
Also remove the check on purpose-mode. Using the purpose layer without
purpose-mode does not make sense so I prefer to throw an error is such
case happens.
2016-10-16 22:25:04 -04:00
syl20bnr be2061c7a0 purpose: replace use-package :after by (require ...)
Also move :config to :init
2016-10-16 22:25:04 -04:00
syl20bnr 67f9f4828d purpose: replace use-packag :if by layer :toggle 2016-10-16 22:25:04 -04:00
syl20bnr 8306626504 Move window-purpose layer to spacemacs-purpose layer
Update README.org and add spacemacs-purpose layer to spacemacs
distribution.
Move functions of the layer to funcs.el and prefix variables and
functions introduced by the layer with `spacemacs`.
2016-10-16 22:25:04 -04:00
bmag f9c74e2b58 Synchronise load/save of workspaces and layouts
Update current layout's workspaces before saving layouts to file (fixes
7214).
Load current layout's workspaces after loading layouts from file, if it's
one of the loaded layouts (fixes 6979).
2016-10-03 00:23:15 -04:00
duianto 98b5a2be4f
three words spellchecked
"horizonatl", swapped "a" and "t", resulting in: "horizontal"

"porpertized", swapped "o" and "r" , resulting in: "propertized"
"containg", added "in", resulting in: "containing"
2016-09-23 10:51:19 +03:00
Abdo Roig-Maranges 68becc5597 layouts: persp-mode changed variable to enable ido-hooks
Since persp-mode 2.5 the way to enable ido hooks changed again. Without
tihs, SPC b b lists all buffers instead of persp-local ones.
2016-09-20 20:09:22 +02:00
bmag 753b81275c dumb-jump: bind key instead of enable mode 2016-09-16 15:07:05 +02:00
Eivind Fonn f373105be1 Disable smartparens highlighting 2016-09-14 14:46:01 +02:00
Muneeb Shaikh 6d17a90d0c fix void variable when not using osx layer
Fix `Symbol's value as variable is void: osx-use-dictionary-app` when
not using osx layer.
2016-09-06 12:29:48 +05:30
JAremko ad547c390d Fix buffer edges bug. 2016-09-05 21:12:52 -04:00
JAremko cfd6b06669 space-doc: Don't clean the global cache. 2016-09-05 21:12:52 -04:00
JAremko 91df3b1c13 space-doc: Use text properties instead of overlays. 2016-09-05 21:12:52 -04:00
JAremko 95f4119366 disabled by default centering in space-doc-mode.
Fix centered-buffer-mode conflict with Emacs 25
2016-09-05 21:12:52 -04:00
syl20bnr 047b57223a Fix packages list for spacemacs-language 2016-09-05 11:51:30 -04:00
deb0ch fc23818c1c fix 4b2f123: do not remove workaround 2016-09-01 00:56:22 +02:00
bmag 64a1b85523 NeoTree: clarify docs 2016-08-30 15:55:48 +02:00
bmag 1bca514d25 Fix neotree TS 2016-08-30 15:55:46 +02:00
Muneeb Shaikh a5579ffce7 neotree: add ts for easy discoverabilty of keys
Fix #6867
2016-08-30 15:55:45 +02:00
bmag 4b2f123a05 neotree window: assign 0 only when at top-left 2016-08-30 15:53:25 +02:00
Muneeb Shaikh 8e1d449754 osx: add osx-dictionary and make it default for OS X 2016-08-27 21:26:43 +05:30
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
Abdo Roig-Maranges a52422e653 layouts: fix B b b not restricting to layout-local buffers
This fixes two issues regarding layouts.

1. Since Bad-ptr/persp-mode.el@e950bf15, persp-mode requires setting
persp-hook-up-emacs-buffer-completion in order to install the hooks for
ido & friends. This variable is nil by default, making SPB b b not
restrict to layout-local buffers.

2. The function spacemacs-layouts/non-restricted-buffer-list removes a
hook and re-adds it later. This makes the assumption that the hook was
already present. If it was not (due to 1) then SPC B b changes global
state by adding that hook. Instead, just let-bind the hook variable
for the scope we need it changed.

This explains and partially fixes #5788 and #6266. It does not fix the
dependency on ido-mode. If ido-mode is excluded, persp-mode will not
install the hook for ido, and SPB b b will still be unrestricted.
2016-08-22 15:00:59 +02:00
d12frosted 4071e0c215
improve spacemacs/open-junk-file doc string 2016-08-22 08:55:57 +03:00
André Peric Tavares 3e84c91f1d Remove duplicated words in docstring
"Open junk file" is duplicated in the docstring.
2016-08-21 14:50:26 -03:00
JAremko 328c6b81aa Add aspect ratio check for centering.
Fix git conflict.
minor improvements and cleanup.
2016-08-21 17:29:19 +02:00
JAremko 7140e8dfa8 Add extra checks, cleanup
simplify space-doc customization

rearrange defcustom groups

more checks
2016-08-21 17:29:16 +02:00
JAremko 9ba525cdde simplify space-doc-mode
refactoring
2016-08-21 17:29:13 +02:00
JAremko 7e1eae0b9a space-doc/centered-buffer improvements.
reformat

fix stuff

make sure that user wants overlays
2016-08-21 17:29:08 +02:00
Riccardo Murri a26503dc8d Allow customization of spaceline additional segments.
Introduce a new customization variable
`spacemacs-spaceline-additional-segments', which is a list of the
additional segments that should be inserted in the modeline when it is
initialized.
2016-08-21 17:01:23 +02:00
Eivind Fonn 2f15e8afb2 Fix possibly unbound mouse-wheel-mode 2016-08-21 17:00:08 +02:00
Nir Friedman ed1f782bdf Add option for helm fuzzy matching
Change-Id: If3f59e53fa954c230938876184852d1a34f3e7d3
2016-08-17 20:53:45 +02:00
Eivind Fonn b72f8289f8 clean-aindent-mode is global, hook makes no sense 2016-08-07 16:27:54 +02:00
Eivind Fonn 4233ffaecc Fix #6704: don’t use evil-open-below/above
- Also add counts
2016-08-05 21:31:43 +02:00
Eivind Fonn 4298469f17 Set desktop-dirname during init 2016-08-05 21:27:45 +02:00
bmag cea0819ca4 Move helm-popwin config to helm layer 2016-08-05 21:24:47 +02:00
bmag fe60d0fc1e Set buffer-predicate to spacemacs/useful-buffer-p
Prevent next-buffer, other-buffer, etc. from choosing useless buffers.
No need for spacemacs/next-useful-buffer,
spacemacs/previous-useful-buffer anymore.

Also fix spacemacs/alternate-buffer to respect buffer-predicate.

When spacemacs-layouts is used, buffer-predicate filters useful buffer
that belong to the current layout.
2016-07-25 20:02:28 +09:00
Eivind Fonn 8e87132ba7 Fix possibly calling bad code after theme change 2016-07-25 14:00:02 +09:00
bmag 2f6bf80275 Fix void-function spacemacs//restore-previous-display-config error
Move usage of spacemacs//restore-previous-display-config from helm layer
to spacemacs-completion layer. (It's already defined there)
2016-07-25 12:33:40 +09:00
d12frosted 41baea8744
install evil-unimpaired using quelpa
And properly setup dependencies.

Fixes #6523
Suppresses #6559
2016-07-15 15:14:04 +03:00
syl20bnr 653da2a6aa highlight-persist/smartparens overlay: better adaptive face
Choose to inherit from face lazy-highlight instead of region.
Ideally a theme should not set lazy-highlight to the same face as
region.

Also move some function to funcs.el and remove some empty lines.
2016-07-13 10:22:03 -04:00
NJBS 35646d684b Fix typo in docstring 2016-07-11 18:26:53 -04:00
syl20bnr 9499e24197 Comment evil-terminal-cursor-changer instead of excluding it
We should not exclude packages just to disable their config and
preventing them from being installed.
2016-07-06 22:49:24 -04:00
syl20bnr 939cbb6322 Cleanup ansi-colors config 2016-07-06 21:51:10 -04:00
deb0ch 42953fe51b colorize compilation buffers by processing ansi color sequences 2016-07-06 21:48:27 -04:00
JAremko f9a846d2ee Integrate centered-buffer-mode and space-doc-mode. 2016-07-06 21:27:34 -04:00
MadAnd c98f862174 Extract evil-unimpaired as a local package 2016-07-06 21:22:16 -04:00
JAremko e3c86859b3 refactor space-doc, add to the FAQ. 2016-07-05 00:23:16 -04:00
JAremko 3aaa39f155 fix space-doc errors 2016-07-05 00:23:16 -04:00
d12frosted dc3b46c9c4 fix some function names in space-doc 2016-07-05 00:23:16 -04:00
MadAnd dd9c967825 Support Hybrid state in Iedit Insert state 2016-07-05 00:23:16 -04:00
d12frosted 97147993a6 remove old custom layout on override
For example, creating new custom layout `["e" . "Name"]` clashes with
`["e" . "Spacemacs"]`. After override `SPC l o` should not show both of
them, but only the override.
2016-07-05 00:23:16 -04:00
syl20bnr 4ad27cfea8 Update docstring for space-doc and delete some empty lines 2016-06-26 13:47:52 -04:00
Eivind Fonn 38814881dc Allow user more control over space-doc mode 2016-06-26 13:27:51 -04:00
syl20bnr b30c393b8d Refactor SPC w and SPC b regarding deletion
The motivation is to clean redundent actions and bring more consistency
between `SPC b` and `SPC w` by:
- using capital letters for ace-window actions
- reusing the same letters between window and buffer when possible
- adding support for universal prefix argument to delete both window
and buffer

Details of changes:

Buffer

- `SPC b k` has been removed since the functionality is
available directly in Helm by selecting the kill buffer action

- `SPC b m` (buffer move) has been removed because the functionality
is available via `SPC w` with `SPC w h/j/k/l`, `SPC w H/J/K/L` and
`SPC w M` (see window section for the new `SPC w M`).

- `SPC b K` (kill other buffers) is now `SPC b m` to map with `SPC w m`
(kill other window or maximize). Using the universal prefix argument
`SPC u SPC b m` will also kill the windows.

- `SPC b C-k` (kill buffer matching regexp) is now simply on `SPC b k`.

- `SPC b D` now kills a buffer using ace-window.

- `SPC b d` and `SPC b D` now accept an universal prefix argument to
also delete the window. So `SPC u SPC b d` and `SPC u SPC b D` delete
the buffer and the window.

Window

- `SPC w M` now swap the window using ace-window.

- old `SPC w M` (center window) is now on `SPC w c` and `SPC w C` uses
ace-window.

- `SPC w SPC` (select window) is now on `SPC w W` since it uses
ace-window.

- `SPC w d` and `SPC w D` now accepts an universal prefix argument to
delete the window and the buffer.
2016-06-26 00:05:55 -04:00
syl20bnr cbb61070fd Replace some emacs-user-directory vars and update documentation 2016-06-23 00:25:04 -04:00
Eivind Fonn 92b48eadea 💣 Drop support for Emacs 24.3
Spacemacs now needs at least 24.4 to launch.
2016-06-20 22:05:56 -04:00
syl20bnr 117dcba0ed Revert "Drop support for Emacs 24.3"
This reverts commit 31bab70397 making
a new commit to put TheBB as the author.
2016-06-20 22:05:12 -04:00
syl20bnr 31bab70397 💣 Drop support for Emacs 24.3
Spacemacs now needs at least 24.4 to launch.
2016-06-20 21:55:36 -04:00
syl20bnr 50d5cdd054 Fix error with which-key--buffer on startup
Use the hook instead.
Fixes #6358
2016-06-18 00:19:59 -04:00
syl20bnr e1826c9382 Disable vi tilde fringe in which-key buffer 2016-06-13 00:39:08 -04:00
syl20bnr ad72dab624 Move pcre2el key bindings to SPC x r prefix
Also document it.
Move everything to spacemacs-base since the new prefix is not as invasive
2016-06-13 00:01:25 -04:00
ralesi 9047b7b5ce Move pcre2el to spacemacs-base.
Fixes #5953
2016-06-12 23:06:22 -04:00
syl20bnr dc94784e70 Remove leuven theme from spacemas-ui-visual and simplify default value
for dotspacemacs-themes, set only the spacemacs themes.
2016-06-12 21:15:10 -04:00
syl20bnr dc822d5b9e space-doc: disable line numbers and resized images
Resize images to 600 pixel width (exclude README.org for now)
Disable line numbers.
2016-06-10 15:50:45 -04:00
syl20bnr 9d7259d83a vhl: fix error message "vhl no load function for extension..." 2016-06-10 00:49:13 -04:00
syl20bnr c288a391bf vhl: move all extension functions into respective eval-after-load 2016-06-09 23:21:51 -04:00
Don March 520910f41a Enable volatile highlights for evil and undo-tree 2016-06-09 23:13:09 -04:00
syl20bnr 2b44ce33a2 ahs: improve transient state hint 2016-06-09 22:52:50 -04:00
syl20bnr f5799ab1ec ahs: move b, f and / key bindings to helm and ivy
Correctly augment the docstring based on the presence of b,f and /
bindings using dynamic hint.
b,f and / are not available if none of helm or ivy layers are used.
2016-06-09 22:50:24 -04:00
syl20bnr ed2d8227b0 Minor refactor of spaceline config 2016-06-09 20:45:11 -04:00
Johannes Goslar bdb49476a8 fix startup crash if powerline is excluded
This prohibits a crash when powerline is excluded in dotspacemacs-additional-packages
2016-06-09 10:30:44 +02:00
syl20bnr d07b0aa16f spacemacs-ui-visual: move functions to funcs.el
And sort them
2016-06-08 10:41:14 -04:00
syl20bnr 89d5aad0a5 Various tweaks to golden-ratio configuration
- Prefer add-to-list function to alter golden-ratio variables so the lists
are less likely to grows as users reload their spacemacs config.
- Move some config to layers when appropriate
- Sort alphabetically the values
- Remove some duplicates in exclude-modes
2016-06-08 10:17:08 -04:00
syl20bnr 7d0ef58150 Add quit-window to golden-ratio-extra-commands 2016-06-08 09:52:01 -04:00
Eivind Fonn 403e8441fb don’t double-check ws-butler-mode 2016-06-06 14:12:11 +02:00
bmag e552921273 ahs-to-iedit: restrict iedit region to ahs range 2016-06-05 00:28:44 -04:00
syl20bnr 51b413dde0 Diminish evil-mc prefix in mode-line 2016-06-02 22:47:37 -04:00
syl20bnr c0f19caa5a New local package spacemacs-whitespace-cleanup
Under toggle SPC t W with lighter W
2016-06-02 22:39:41 -04:00
Eivind Fonn 5a4e8a3f01 core: add toggle for whitespace cleanup 2016-06-02 21:02:30 -04:00
syl20bnr 29bae4026a Improve lighter consistency of toggles
Make global and local whitespace mode lighters identical
Add a lighter for fill column indicator
2016-06-02 20:57:15 -04:00
syl20bnr 8f45a94095 ivy: perspective -> persp-mode and layout
Fix wrong package name.
Replace `perspective` words by `layout`
2016-05-31 23:39:47 -04:00
syl20bnr 430a3e4797 fold method: split config and add dot variable to template
Move the evil part to evil config and used :toggle keyword
Also add the variable to the dotfile template
2016-05-31 22:59:39 -04:00
Muneeb Shaikh 371dd85ff2 core: add another code folding method using origami to spacemacs-editing
* layers/+spacemacs/spacemacs-editing/packages.el (spacemacs-editing/init-origami):
  add origami package and initialize it
* core/core-dotspacemacs.el (dotspacemacs-override-evil-folding): new
  variable to allow choosing between different code folding methods.
  Currently supported `evil' and `origami'
2016-05-31 22:46:04 -04:00
Eivind Fonn 62fc64f745 core: special toggle API for minor modes 2016-05-31 22:33:44 -04:00
JAremko 74e0644759 add more checkers 2016-05-29 23:03:23 -04:00
syl20bnr 303e76b769 remove remaining packages-funcs.el and packages-config.el 2016-05-27 00:32:05 -04:00
Eivind Fonn ac104d2739 Move helm setq out of with-eval-after-load 2016-05-23 12:59:11 +02:00
syl20bnr fd756a124e New layer nlinum + revert default support for linum
To use nlinum + nlinum-relative add the nlinum layer

Note: there are still work to do on nlinum-relative, at some point we
may replace linum by nlinum completely.
2016-05-20 23:57:32 -04:00
syl20bnr e06929ddaf Replace smooth-scrolling package by a native alternative
My tests show that scroll-conservatively does the job, need your
feedback on this.

See https://github.com/syl20bnr/spacemacs/issues/6097
2016-05-20 23:36:13 -04:00
syl20bnr 46b880668c Fix neotree key bindings 2016-05-20 17:00:27 -04:00
syl20bnr 0b84b1be66 Fix errors with last revert and move neotree funcs 2016-05-19 20:22:07 -04:00
syl20bnr ee1d7d4bfa Revert "New layer spacemacs-projects containing projectile and neotree"
This reverts commit 3f22eeaa03.

Projectile is used in various places and can be considered a base
package.
2016-05-19 20:22:07 -04:00
syl20bnr 156cead380 Revert "Experimenting with 0.2 delay to redraw relative line number"
This reverts commit 8fd78b06f3.
2016-05-19 14:33:36 -04:00
syl20bnr 8fd78b06f3 Experimenting with 0.2 delay to redraw relative line number
0.2 is the same delay for additional UI improvements like matching
parens and highlighting.
2016-05-19 13:46:06 -04:00
syl20bnr 27a665e616 Move nlinum-relative to spacemacs-evil layer
Make more sense in this layer since it is used mainly by Vim style users
2016-05-17 00:05:14 -04:00
codefalling fa4eeb49f0 Replace linum by nlinum and nlinum-relative 2016-05-17 00:02:41 -04:00
syl20bnr a086a5ba17 Fix hs-minor-mode activation in prog modes 2016-05-16 21:02:33 -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
syl20bnr 1aa0e4bfa3 Rename default-org to default-org-config 2016-05-15 22:03:46 -04:00
syl20bnr 70aa0105a4 Move default config for ivy to spacemacs-completion
Use a custom package name. Also dispatch functions to funcs.el files.
Disable ivy-hydra for now.

With this default configuration users using helm instead of ivy still
get a good ivy base configuration (UI and Key bindings).
2016-05-15 22:03:25 -04:00
syl20bnr cbda059ea0 Move default config for helm to spacemacs-completion
Use a custom package name. Also dispatch functions to funcs.el files.
With this default configuration users using ivy instead of helm still
get a good helm base configuration (UI and Key bindings).
2016-05-15 22:02:18 -04:00
syl20bnr bb3e8eca42 Move ido config to new layer spacemacs-completion 2016-05-15 21:55:57 -04:00
syl20bnr 8fb5d86be0 Fix dumb error with spacemacs-projects-packages variable 2016-05-15 19:39:49 -04:00
syl20bnr 1f2d817708 New spacemacs-misc layer, move request to it 2016-05-14 12:28:57 -04:00
syl20bnr 3f22eeaa03 New layer spacemacs-projects containing projectile and neotree 2016-05-14 11:57:32 -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
bmag 50bd692e98 Layouts: gui/terminal frames should have different workspaces
Use two different sets of workspaces for each perspective - one
set for graphical frames, and one set for terminal frames.
This is required because workspaces from graphical frames are not
compatible for use in terminal frames.
2016-05-11 20:46:53 -04:00
syl20bnr 738f425276 Add spaceline-compile to spacemacs-post-user-config-hook
Also improve support for GUI client using a server launcher with
emacs --daemon.
2016-05-11 20:07:26 -04:00
Eivind Fonn a652a66e45 spaceline: don’t use :when in new-version segment
This will be necessary with the new version of Spaceline, but it works
fine with the old version too.
2016-05-09 23:24:44 +02:00
Daniel Luna 76610294a7 long-lines' toggle now accepts prefix arguments.
This commit introduces two new options to add-toggle:

:prefix, a symbol that is bound to the raw prefix argument (as
in `(interactive "P") forms).

:on-message, an expression overriding the default 'on' toggle
message (useful to document a toggle's argument).

These new options are applied to long-lines' toggle, so we can choose
how many lines to toggle it on via a raw prefix argument.
2016-05-06 13:53:41 +02:00
Eivind Fonn 2136a8e74f bracketed-paste: Use :toggle instead of :if
Also fix the actual expression :-)
2016-05-06 13:53:30 +02:00
Aaron Jensen 9d186c5f4c spacemacs-editing: disable bracketed paste for 25+
Bracketed paste is built into emacs 25+
2016-05-06 13:47:17 +02:00
Eivind Fonn 325067bc10 unimpaired: Move hunk commands to version-control 2016-05-06 13:27:44 +02:00
Iuri Fernandes cc6d315ea6 Adapt hunk commands to other diff tools 2016-05-06 13:26:12 +02:00
Christoph Paulik 67aeb73655 Defer loading of persp mode until after user-config
fix #3881
2016-05-05 13:01:47 +02:00
bmag 2a669648aa layouts: don't double activate persp-mode
If persp-mode is already activated, don't re-activate it. Should fix bug
where running dotspacemacs/sync-configuration-layers (SPC-f-e-R) resets
all the layouts.
2016-05-01 11:14:32 -04:00
bmag cf3068e4ef layouts: persp-activated-hook -> persp-activated-functions
persp-mode has renamed persp-activated-hook to
persp-activated-functions, so we gotta update the hook.
2016-04-29 23:01:48 -04:00
JAremko 42db6c7a41 Move space-doc to the Spacemacs core bundle 2016-04-29 20:01:56 -04:00
syl20bnr e18b1cbe0e Move vi-tilde-fringe hook to shell layer
Also replace lambdas by named functions
2016-04-29 17:48:00 -04:00
Russell Sim c115a66210 Disable tilde fringe in shell/comint modes 2016-04-28 16:01:01 +02:00
sooheon a0d244d47f Remove duplicate definition of symbol-highlight 2016-04-28 15:38:02 +02:00
Eivind Fonn 052896e782 Fix ace-delete-window bindings 2016-04-12 23:02:03 -04:00
Muneeb Shaikh d19c6eb566 spacemacs-evil: add evil-visual-mark-mode
This adds toggle for evil-visual-mark-mode on SPC t `

Fix #5619
2016-04-12 22:47:26 -04:00
syl20bnr 5d84473fca layouts: update arity for persp-before-switch-functions
The hooked functions must take 2 parameters, I just ignored the
second one as well. Not sure of the implication but it seems to work.
2016-04-12 22:09:19 -04:00
syl20bnr 859f28473b layouts: use MELPA version of persp-mode 2016-04-12 22:05:24 -04:00
bmag 526a0334d7 Synchronize Neotree window when changing context
Fix Neotree losing track of its window when changing workspaces or
layouts.
2016-04-08 23:12:26 -04:00
Fabien Dubosson ac5cfcf2a1 Improve SPC s c to support evil-search-module
Fix #1326
Fix #5101
2016-04-08 23:11:12 -04:00
syl20bnr ff7b839df0
org: various tweaks to spacemacs-org and org layers
- move evil-org to org layer
- move org-plus-contrib to spacemacs-org layer
- remove toc-org from the list of package for org layer
- give ownership of the org package to org layer
- invent a package named default-org in spacemacs-org layer in order
  to let the ownership of org package to org layer
- remove unnecessary :mode keyword in use-package from for org
2016-04-07 22:11:22 -04:00
d12frosted 8b0c69c8cd
move org essentials to spacemacs distro 2016-04-07 22:11:22 -04:00
syl20bnr 97f4473849 Remove erroneous :defer for spaceline package.
Thanks TheBB :-)
2016-04-07 14:57:48 -04:00
syl20bnr 63dc8f7ea0 shell: add support for SPC u SPC ' to open shell in current buffer
Works as well for all `SPC a s ...` key bindings.
2016-04-07 14:52:41 -04:00
Fabien Dubosson 1a45754cad Visualy align some keybindings 2016-04-05 12:53:44 +02:00
Fabien Dubosson 57e91fe035 Correct more <SPC> to SPC 2016-04-05 12:52:54 +02:00
syl20bnr c4e6dd752b spaceline: remove :defer 0.1 for now 2016-04-03 22:25:39 -04:00
syl20bnr cc5afabcae Experimental: defer by 0.1s spaceline
spaceline can sometime take 1s to load when Emacs starts, using
:defer 0.1 seems to smooth the startup a little bit.
2016-04-03 00:38:13 -04:00
syl20bnr 6770969b6f core: add variables for core-spacemacs-buffer
- spacemacs-buffer-version-info
- spacemacs-buffer-logo-title
2016-04-01 00:26:19 -04:00
syl20bnr c4d9ca8fba spacemacs layouts and workspaces tweaks
- add `l` to workspace transient state to go back to layout transient
  state
- remove erroneous `l` and `h` keys on layouts transient state
- unique documentation toggle for layouts and workspaces
- reformat and sort transient states documentation
2016-03-30 14:29:55 -04:00
syl20bnr dd14afaf26 workspaces: new workspace clones the current one
Fixes #5566
2016-03-25 10:37:03 -04:00
syl20bnr 63df395975 Fix eyebrowse error when syncing layers
Fixes #5573
2016-03-25 01:12:30 -04:00
syl20bnr a33b0d02c7 Revert unwanted change in previous commit 2016-03-25 01:11:32 -04:00
syl20bnr 16afe67907 core: enhance lazy installation of layer
Now Spacemacs will ask for layer installation when opening a file with
a known file type.
The auto-mode-alist entries are added by the file auto-layer.el in
the layers directory.

Easy insert of forms for lazy initialization can be done with the
interactive function configuration-layer//insert-lazy-install-form.

Change default value of dotspacemacs-enable-lazy-installation to t.
2016-03-25 01:03:37 -04:00
syl20bnr 82efa16dab Fix long-lines toggle and rename it
Fix global version of the toggle
Rename it to highlight-long-lines
2016-03-22 09:38:37 -04:00
syl20bnr 828ae8113d Replace enforce-column layer by a toggle on SPC t 8 2016-03-21 21:18:36 -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 944960daf8 Move eyebrowse to spacemacs-layouts layer and add documentation
Add toggle capability with ? for workspaces transient state
Remove the variable eyebrowse-display-help
2016-03-20 21:48:06 -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