| Age | Commit message (Collapse) | Author |
|
|
|
|
|
* evil-commands.el (evil-forward-word-begin): Instead of hardcoding
#'evil-change to apply workarounds, read from a
`evil-change-commands' list instead.
This patch adds a new variable, `evil-change-commands', which defines
functions that evil will treat as bound to 'c'. When wrapping
`evil-change', add your function to this list to get the same behavior
as `evil-change'.
Example usage:
(add-to-list 'evil-change-functions #'my-evil-change)
|
|
Remap commands to use visual version when `visual-line-mode' is active.
These commands are swapped
`evil-next-line' <-> `evil-next-visual-line'
`evil-previous-line' <-> `evil-previous-visual-line'
`evil-beginning-of-line' <-> `evil-beginning-of-visual-line'
`evil-end-of-line' <-> `evil-end-of-visual-line'"
|
|
Allows one to prevent evil-visual-paste from automatically adding the replaced
text to the kill ring, which changes what will be pasted next.
|
|
|
|
Remove hg check, change cond to if
|
|
Remove view-mode (minor mode) from initial states
|
|
emacs-evil/bugfix-disable-reusage-of-scroll-line-count
Don't reuse scroll line count
|
|
|
|
It doesn't make much sense to have it here because initial states
apply to major modes only. For minor modes, use a hook.
Prompted by http://emacs.stackexchange.com/a/32133/10
|
|
When non-nil (which is default) the `expand-abbrev` will be called in
a `evil-insert-state-exit-hook` hook. This is in-line with Vim's behaviour.
|
|
This change has been applied to get closer to Vim. While C-u and
C-d in Vim remember the last scroll amount, the Vim manual mentions
nothing of this sort about C-y and C-e.
Closes #790.
|
|
|
|
|
|
|
|
* call function directly when insert state ends
* post-command-hook only used to track the state
Because the cleanup is now done when insert state is left (and not
later in a post-command-hook), removing the spaces should not mess up
the undo-list anymore.
|
|
In v25.1, emacs changes the way undo boundaries are automatically
removed to combine commands into single undo steps. #594 is the
result of more aggresive removals of undo boundaries.
To fix this, make evil more active in inserting undo boundaries
when entering and exiting insert and replace state by creating
a boundary automatically if none exists.
A slightly different issue in #594 is that the fine option of
evil-want-fine-undo was not always working correctly. The reason
is that it removed the first undo boundary after exiting insert
state regardless of whether it made sense to do so
(i.e., regardless of whether there was a change command). This
commit removes the fine option and simplifies the meaning of the
variable to mean aggregate commands like vim or use Emacs
heuristics.
|
|
The variable `evil-force-cursor` can be set to a state symbol so that
the current default cursor is changed to the specified state. This can
be used to ensure that subsequent calls to `evil-refresh-cursor` use
the cursor in `evil-force-cursor` instead of the states default
cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The last jump mark is replaced with the old position.
|
|
|
|
|
|
In recent `magit` interactive rebase buffer have major mode `git-rebase-mode`.
By default normal state is used in this mode, breaking key bindings to mark
(e.g. squash, reword, etc.) and move commits, moreover switching to emacs state
does not restore these keys. Adding `git-rebase-mode` to
`evil-emacs-state-modes` fixes this.
|
|
commands so that they can be compiled
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evil-define-minor-mode-key is similar to evil-define-key, except
it associates bindings with a minor-mode symbol instead of a
specific keymap. This has the advantage of automatically picking
up on when a minor-mode is enabled or disabled through standard
Emacs mechanisms, instead of requiring a call to
evil-normalize-keymaps to activate the binding after the mode is
toggled.
This is meant to supplement usage of evil-define-key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|