Commit graph

113 commits

Author SHA1 Message Date
justbur 86ab9e7eeb paste-ts: Change key bindings to C-j/C-k
J was annoying for those who wanted to use join lines right after a
paste.
2016-02-07 14:46:11 +01:00
Eivind Fonn 8d60b15ccf Move projectile-shell-pop to shell layer 2016-02-02 16:42:58 +01:00
Fabien Dubosson 010444cdc7 Add projectile-shell-pop and bind it to SPC p '
This allows to open a shell at project's root
2016-02-02 16:36:39 +01:00
justbur 18874c9a3e hybrid-mode: Simplify implementation
Make use of new evil variable evil-disable-insert-state-bindings. This
is better because we are not copying evil code to get hybrid state to
work. We should not need to worry about tracking upstream evil changes
with this version of hybrid mode.

The only effect I can think of with this change is that there is no
longer a distinct hybrid-map, since there is no longer a distinct hybrid
state. This means that, for example, (evil-define-key 'hybrid ...)
will throw an error. You can either use (evil-define-key 'insert ...) or
the preferred (global-set-key ...). The latter is preferred because the
purpose of hybrid mode is to not interfere with Emacs bindings in insert
state.

Use post-init-evil function to load
It's a bit safer than with-eval-after-load, in case evil gets loaded
before its init function is called.

Add entry and exit hooks

Add temporary wrapper to evil-define-key
This is so that calls like (evil-define-key 'hybrid ...) do not fail
after switching over. Instead issue a warning for all such instances and
bind using define-key instead.
Also define evil-hybrid-state-map and make it the parent of
evil-insert-state-map this will prevent calls like (define-key
evil-hybrid-state-map ...) from failing.
These are both temporary and are only intended to smooth the transition
to the new version of hybrid-mode.
2016-02-01 00:20:58 -05:00
justbur 65d92b8595 which-key: Fix replacement for transient-state/body 2016-01-31 23:49:49 -05:00
Balaji Sivaraman 2b1ed603dc Change all references of micro-state in codebase to transient-state 2016-01-31 23:04:47 -05:00
Olivier Verdier a68cc58253 escape quits help mode 2016-01-31 23:04:46 -05:00
Fredrik Bergroth 757ffd13e8 Restore window layout when quitting ediff 2016-01-31 23:04:46 -05:00
Tu Do 03ec0cb4bb [#4137] Give useful Projectile commands key bindings
helm-projectile-find-file-dwim is equivalent to find-file-at-point,
but operate in project scope and does not require full path.
2016-01-31 21:48:52 +01:00
justbur e97af03ff7 Call new micro-state a transient state 2016-01-26 01:21:00 -05:00
justbur 7ed141b7dd hydra: Disable evil-local-mode in the corelv buffer
Otherwise evil calls evil-refresh-cursor which reverts the cursor from
being nil
2016-01-26 01:21:00 -05:00
justbur 4123b19314 which-key: Add rules for new micro-state 2016-01-26 01:21:00 -05:00
justbur dbd9725c39 spacemacs(-base): Translate micro-states to use new macro
1. spacemacs: scroll
2. spacemacs-base: paste
3. spacemacs-base: macrostep
4. spacemacs-base: transparency
5. spacemacs-base: scale-font
6. spacemacs-base: wind-manip
7. spacemacs-base: buffer
8. spacemacs: symbol-highlight
9. spacemacs: move-text
10. spacemacs: zoom-frm
11. spacemacs: evil-numbers
2016-01-26 01:20:59 -05:00
justbur 90df083ad3 spacemacs-base: Add hydra package 2016-01-26 01:20:59 -05:00
Eivind Fonn 3271dbcf0f Move rspec popwin config to ruby layer 2016-01-23 17:08:18 +01:00
Josh Cass 94e08aa401 Use popwin for rspec-compilations
With the introduction of `rspec` support in version 0.105.0
tests run with rspec launch in their own `rspec-compilation`
which is not managed in `spacemacs-base/init-popwin` causing
those compilations to open a new buffer and take over an exisiting
window.

It is preferable to have the test compilation open in a popwin
that does not disrupt the current state of a workspace layout and
takes advantage of the full width of the current editor view
so it's easier to read. Popwin is also nice because it is easier
to dismiss with a simple `C-g` or `SPC w p p`.
2016-01-23 17:04:59 +01:00
justbur e519dad118 evil: Bind evil-jump-forward for GUI
Bind to <C-i> so that evil-jump-forward works in the GUI and we don't
rebind TAB in the terminal.

Bind <C-i> for the evil-jumper package too
2016-01-21 16:12:08 +01:00
justbur 2f94ada233 spacemacs-base: Add evil-ediff
This is a simple package I wrote to add a few vim-like bindings to ediff
and make the help popup reflect these bindings.
2016-01-18 00:35:40 -05:00
syl20bnr 438bce3d29 Move request package storage directory to .cache 2016-01-11 21:59:34 -05:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
syl20bnr ce33918714 Use spacemacs/add-to-hooks 2016-01-11 01:15:47 -05:00
justbur c5528a5031 ivy: Minor changes to make more consistent w/ helm
1. Ask for intial directory in "file" search commands
2. "ry" -> counsel-yank-pop (browse kill ring)
3. Shorten which-key description for project search commands.
2016-01-11 01:13:09 -05:00
Fabien Dubosson a2ad920216 Enable hl-todo in text-mode derived buffers 2016-01-10 14:24:30 +01:00
justbur e4b865d88f ivy: Move persp keybindings out of projectile init
Now in post-init functions in the spacemacs-layout layer

Cleans up f74fbc6baba044b559917f6b15cb6f91934cdeee
2016-01-09 13:36:03 -05:00
justbur a8c5119a50 ivy: Fix recentf loading
ivy-use-virtual-buffers was triggering recentf-mode to be called before
the recentf init function was called leading to problems with where the
recentf file was placed.
2016-01-09 13:36:03 -05:00
justbur 08ec94a373 Update previous commit for new layer 2016-01-09 13:36:03 -05:00
Alexandr Skurikhin c7008108f5 Add ivy-persp-switch-project 2016-01-09 13:36:03 -05:00
justbur 32f523e062 spacemacs-helm: New layer
Collect helm configuration from spacemacs and spacemacs-base into one
place. The purpose is to allow choice between this layer and
spacemacs-ivy.
2016-01-09 13:36:03 -05:00
syl20bnr 58e5241c8d dotfile: rename dotspacemacs-command-key for dotspacemacs-emacs-command-key
And change the key from ":" to "SPC"
This key does not try to bind evil ex-command anymore, it only bind
M-x behind the leader key.
2016-01-09 01:53:24 -05:00
syl20bnr 454027df35 Remove undocumented and duplicated SPC j m and update doc. 2016-01-09 01:30:05 -05:00
justbur 02e2ce4d5a keybindings: Add SPC j for jumping
Use mnemonic j for jumping commands. Although some of these commands
exist in other places, they are duplicated here when they don't
conflict.

Add:

  1. jb for bookmark-jump
  2. jc for avy char jump
  3. jd for dired-jump
  4. jD for dired-jump-other-window
  5. jf for find-function-at-point
  6. ji for spacemacs/jump-in-buffer (imenu)
  7. jI for helm imenu in all buffers
  8. jl for avy go to line
  9. ju for avy-pop-mark (u for "undo")
  10. jU for spacmacs/avy-goto-url
  11. jv for find-variable-at-point
  12. jw for avy go to word or subword

Move:
  1. jh to j0 (push mark and go to beginning of line)
  1. jl to j$ (push mark and go to end of line)
2016-01-09 01:00:44 -05:00
Yiming Chen 954104a792 Bind g and G in helm micro state
Fix #4233
2016-01-03 22:23:12 -05:00
Fabien Dubosson 6cb7399cac Change SPC f e h to SPC h SPC for helm-spacemacs default binding
This make `SPC h SPC` as default binding for accessing `helm-spacemacs`,
by either A) changing all the documentation; and B) adding a deprecation
message for `SPC f e h`.

The deprecation use a warning, because if a message is used it's hidden
directly when the helm buffer is shown, making it nearly unnoticeable
for the user.
2016-01-03 22:23:12 -05:00
Eivind Fonn fd014b6908 Add some text objects 2016-01-03 22:23:11 -05:00
Eivind Fonn 24d0fe3b7b Set helm-org-format-outline-path to t by default
Also ensure FAQ source works regardless of this setting
2016-01-03 18:30:41 +01:00
Eivind Fonn ee42853ac6 Fix helm grep 2016-01-03 15:47:39 +01:00
syl20bnr 5463a370bd holy-mode: fix toggle rule regression
From doc:
SPC t e E toggles between vim and emacs styles (corrected)
SPC t e h toggles between vim and hybrid styles (was correct)
2015-12-21 00:14:46 -05:00
justbur 27fa611af6 holy-mode: Disable certain modes on activation
Includes evil-escape-mode and hybrid-mode for now, but more can be added
to holy-mode-modes-to-disable-alist.
2015-12-21 00:13:34 -05:00
justbur 1d05f3887a holy-mode == (evil-mode -1)
The proper holy-mode (IMO). Simply disable evil-mode and reset the
cursor and mode-line settings.
2015-12-20 23:25:48 -05:00
syl20bnr a5022743e5 core: remove dash and f from boostrap and attempt to remove evil
Cannot remove evil due to bind-map requiring it.
2015-12-20 23:00:09 -05:00
syl20bnr 522366bbd1 spacemacs: hide cursor in helm buffers
fixes #4236
2015-12-20 01:16:36 -05:00
justbur 76d82869a8 bind-map: Define minor-mode name
New bind-map option allows defining the name for the overriding-mode.
This does that and removes the now redundant :evil-use-local option.
2015-12-09 01:25:19 -05:00
syl20bnr e0b3f5e1de spacemacs-base: enable hl-todo only when needed 2015-12-07 22:59:14 -05:00
Fabien Dubosson 6def1a480b Use hl-todo for TODOs/FIXMEs highlighting
The current way to highlight TODOs is `spacemacs/highlight-TODO-words`
which is a spacemacs' hard-coded function.

This commit changes it for the `hl-todo` package. This imply:

- More keywords are supported out of the box.

- Keywords are associated to faces, so they are shown in different
  colors.

- Keywords are stored with their faces in a list, so it's easier for
  users to add their own keywords and faces (as contrary to a regexp).

- It is possible to disable highlighting by simply excluding the
  package.
2015-12-07 19:39:38 +01:00
Fabien Dubosson ec8250ea1d Move jump-in-buffer to SPC s j
After a discussion on gitter with @TheBB and @syl20bnr, `jump-in-buffer`
is moved from `SPC s L` to `SPC s j`.
2015-12-07 13:12:10 +01:00
syl20bnr 5104593e89 spacemacs-base: swap SPC s l and SPC s L
SPC s l to bring last search buffer is a powerful binding, let it take
the easier binding.
2015-12-06 23:20:46 -05:00
justbur 899123258a keys: Don't specify C-i as a binding key
(kbd "C-i") == (kbd "TAB") so for consistency sake we always bind to TAB
by convention.
2015-12-05 13:18:37 -05:00
Eivind Fonn 4870030ba1 Auto-set evil-shift-width based on mode settings 2015-12-01 02:19:56 -05:00
justbur 81765e9f8f keys: Fix #3927
Use new bind-map option to override minor-mode maps with the emacs
leader key.
2015-12-01 01:22:53 -05:00
justbur 648a4e9937 keys: Fix #3981
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
2015-11-29 23:21:09 -05:00