| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Defaults to nil as it is the case in Vim
When non-nil the cursor can be move beyond the last character of
a line and the advice for evaluating the last-sexp when cursor
is on the parenthesis are non effecitve (they are still defined
though).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If an ace-jump moves backwards the motion must not be set to exclusive
in all cases. A char modifier causes it to be changed to inclusive.
|
|
ag.el defines a `k` in its keymap, but we want evil to take
precedence. See
https://bitbucket.org/lyro/evil/issue/462/treat-k-as-an-evil-command-when-in-ag-mode.
See also https://github.com/Wilfred/ag.el/issues/82 for discussions of
the best place for this code.
|
|
|
|
|
|
|
|
|
|
|
|
When calling `evil-make-overriding-map', do not specify 'copy because doing so
would cause KEYMAP been "frozen" in whatever state it is, i.e., any binding on
the original map after this point will not take effect. For example, if user
(or some other package) binds some key in `dired-mode-map' after Evil has been
loaded by using `(define-key dired-mode-map "SOME-KEY" 'SOME-COMMAND)' that
binding will never take effect because it is the copy of `dired-mode-map' rather
than the original map that is in use.
|
|
The function `auto-complete` requires the same repeat-recording as
`ac-complete`.
|
|
|
|
`mumamo` changes buffer local variables and runs major mode hooks when
changing the major mode in some part of the buffer. This change
ensures that the variable `evil-local-mode` is not touched (it's made
permanent-local) and that the globalized minor mode hooks are not run
(i.e. `evil-local-mode`).
|
|
|
|
|
|
|
|
`undo-tree-mode` does not get activated automatically in
fundamental-mode buffers. But because it is required for Evil to work
properly, we use a hook to guarantee that `undo-tree-mode` is
activated as soon as Evil is activated, but only if
`global-undo-tree-mode` is activated as well.
|
|
|
|
|
|
Using #'function (with #) causes the byte compiler to emit
warnings. We use plain symbols now where appropriate.
|
|
This special function is called if some key binding is undefined, so
the corresponding key sequence should not be recorded.
|
|
|
|
|
|
|
|
Both motions (`evil-ace-jump-char-mode` and
`evil-ace-jump-char-to-mode`) are now inclusive if the target is after
the start position and exclusive if it is before the start
position. Furthermore, `evil-ace-jump-char-to-mode` moves point not
directly on the target character but one position before (if forward
jump) or after (if backward jump) the target character. This makes
both motions behave similarly to the standard find-char motions
f,F,t,T. However, operators used with these motions may not be
repeated because the target character is highly context dependent and
there is no known reliable way to reproduce such a motion.
|
|
Declaring those functions as motions causes the region to be *not* set
up to match the visual selection before the command is run (because
motions do not care for the region but for the correct position of
point). However, undo/redo may be used with an active region, so it is
better to declare them as normal commands that are called with the
correct region but may not be repeated.
|
|
|
|
|
|
If the ace-jump is loaded using autoloads, then that hook may not be
available when the evil wrapper functions are called. We use again
`add-hook` to circumvent the problem, which installs the used hook
correctly even before the package is loaded.
|
|
When ace-jump has only one target it does a direct jump without
querying for further characters. Thus, in this situation we must not
start a recursive edit. We use the `ace-jump-mode-end-hook`, which is
called in this case, to detect whether the jump is already complete.
|
|
The macro `evil-without-repeat` is used for ace-jump.
|
|
|