Commit graph

348 commits

Author SHA1 Message Date
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
wliao 7aad1b45ce maps <escape> instead of ESC to quit help-mode
prevents masking M- keys in GUI.
2016-03-01 18:58:18 +01:00
Beau Dacious a54c637480 create align-repeat-backslash command 2016-02-27 14:57:06 +01:00
justbur 5402261456 Improve toggle-maximize-centered-buffer
1. The register name should be a character not a symbol.

2. Combine toggle-maximize-centered-buffer and bzg-big-fringe-mode to
   make new minor mode that combines the two effects.

3. Fix problem where the mode could only be enabled if there was more
   than one window, which makes no sense.

4. Use window-configuration-to-register function
2016-02-25 20:34:40 +01:00
Allen Li 496718ddd8 Fix Window Manipulation Transient State typo 2016-02-25 20:30:24 +01:00
Eivind Fonn 06c35c30ab Re-add yaml-mode as sensitive mode 2016-02-23 20:53:44 +01:00
Robert O'Connor c2f216cbd7 Fixes #5106
Add haskell-mode to the spacemacs-indent-sensitive-modes list; also
makes the lost alphabetical
2016-02-23 20:53:13 +01:00
Ole Jørgen Brønner 21ed08e0d6 Fixed reversed keybindings for comint-previous/next.
k = up = previous, j = down = next
2016-02-23 20:51:47 +01:00
justbur 17ba634021 Fix scroll transient state
Fixes #3450

For some reason, the scroll transient state was trying to reinvent
scrolling halfway up and down a page when these are well supported
operations in evil.
2016-02-23 20:45:53 +01:00
Alejandro Catalina bdd702dfbe evil: enter insert-state only from normal-state 2016-02-23 20:42:59 +01:00
Alejandro Catalina a686fe99ce Fix 0 as prefix arg in paste transient state
When in paste-transient-state, 0 won't exit the transient state and so
it won't take the point to the beginning of line.
2016-02-23 20:40:41 +01:00
syl20bnr 9f93645d1c Require use-package before using it when SPC q D 2016-02-18 23:21:15 -05:00
Fabien Dubosson 1a63e9578b Add restart-emacs functions for debugging
This adds the following functions:

- spacemacs/restart-emacs-debug-init
- spacemacs/restart-stock-emacs-with-packages
2016-02-18 23:08:38 -05:00
justbur 0b997316d0 helm: Move helm-apropos to spacemacs-helm 2016-02-16 23:53:43 -05:00
justbur f6b82ee90d helm/ivy: Use hook to update hjkl navigation
Introduce hjkl-completion-navigation-functions to hold the functions to
disable and enable hjkl navigation for ivy and/or helm. The hook is run
with args to indicate whether to enable or disable.
2016-02-16 23:53:43 -05:00
syl20bnr ae97e1b85c Move eshell cache directory and remove duplicate code for url cache 2016-02-16 23:40:25 -05:00
justbur 85a7cd9b5b Fix toggle-maximize-buffer
Was using the symbol _ as the name of a register when the docs for
register-alist state that the name of a register should be a character.
2016-02-16 22:45:49 -05:00
justbur 8d45f27631 spacemacs: Remove old file
packages-backup.el in the spacemacs layer was kept around while
factoring the layer into smaller components. Since it's out of date now,
the backup file should be removed.
2016-02-16 17:50:42 -05:00
adrsta feefea4b18 Update align function documentation 2016-02-14 23:39:37 -05:00
syl20bnr bc0d0de821 Use spacemacs|hide-lighter 2016-02-14 23:20:04 -05:00
Peter Hoeg d6b83293b2 Diminish relative line numbers
It's a little pointless taking up space in the modeline to indicate that
the LR minor mode is active when line numbers are themselves visible
and it is this clear to everyone that they are active.
2016-02-14 23:18:52 -05:00
Robert O'Connor 4348c17433 Switch “bc”->“bd” and “wc”->“wd”
Also:
- switch spacemacs layouts to the same.
- Add “wD” for ace-delete-window
- switch window dedication toggle to “wt”
- all documentation has been updated to reflect these changes

Closes #5031
2016-02-14 23:09:45 -05:00
Fabien Dubosson 24f0e8cc4b Restart Spacemacs restoring layouts
Fix #5058
2016-02-14 20:59:05 -05:00
Eivind Fonn a111f4802d Don't change scratch major mode if buffer exists 2016-02-10 20:28:03 +01:00
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
Diego Berrocal 55ef06317f Add smartparens to comint-mode
Why not?
2016-02-02 21:06:18 +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
Eivind Fonn 69b14b4950 Fix frame parameter for maximized 2016-02-02 16:30:03 +01:00
MadAnd f506f9a00c Improve frame-fullscreen and maximize-frame toggles 2016-02-02 16:30:03 +01:00
MadAnd a95212dba5 Not re-toggle fullscreen on SPC f e R 2016-02-02 16:30:03 +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
bmag 2ff22934e7 Use window-numbering-assign-func for neotree number
Using window-numbering-assign is simpler and more reliable than using
window-numbering-before-hook and neo-after-create-hook.
2016-01-31 23:54:55 -05:00
justbur 65d92b8595 which-key: Fix replacement for transient-state/body 2016-01-31 23:49:49 -05:00
justbur 3bab577b86 symbol-highlight-ts: Improve doc formatting 2016-01-31 23:48:19 -05:00
Eivind Fonn 4b004951b2 Allow <count>G in doc-view to go to page 2016-01-31 23:43:54 -05:00
Eivind Fonn b3b0ecb399 Make buffer and window close bindings consistent 2016-01-31 23:43:23 -05:00
Eivind Fonn 53daa7b198 Some fixes for google-translate
- Don't explicitly list commands (they are autoloaded)
- Move xgl binding from keybindings.el
- Don't explicitly require the default-ui feature (not necessary)
- Set variables in init instead of config (easier to change for users)
2016-01-31 23:22:42 -05:00
bmag 407f98a1c8 Ensure new workspace/layout only shows home buffer
Previous code would show two windows when invoked from a window that is
dedicated to its buffer: the home buffer and the dedicated buffer.
2016-01-31 23:19:39 -05:00
syl20bnr 39d044dcb4 Move unimpaired contribution to spacemacs-evil
And document it.
2016-01-31 23:04:48 -05:00
Bailey Ling 273c46a603 include quickfix bindings from unimpaired 2016-01-31 23:04:48 -05:00
syl20bnr f7889b4a53 Move link-hint to spacemacs-editing 2016-01-31 23:04:48 -05:00
Fabien Dubosson 324c2fa8d8 Add link-hint package
Use link-hint package. Bind it to `SPC x o` and `SPC x O`.
2016-01-31 23:04:47 -05:00