Nikolai Weibull | 1 Mar 16:06 2015

Input-method during isearch


I’m trying to get input-method to work during isearch.  It works if,
for example, isearch-forward-regexp is started in insert mode, as evil
doesn’t disable input-method then.  However, when started in normal
mode, it won’t work, as evil disables input-method in that state.
I’ve tried

(defun now-evil--isearch-forward-regexp-around (fn &rest args)
  (let ((s evil-state))
    (if (or (not evil-local-mode) (evil-state-property s :input-method))
        (apply fn args)
      (evil-change-state 'insert)
          (apply fn args)
        (evil-change-state s)))))
(advice-add 'isearch-forward-regexp :around

to get around this limitation, but it doesn’t work.  It seems that
evil is entering normal state somewhere between here and when isearch
is started.

What am I doing wrong?


implementations-list mailing list
implementations-list <at>
(Continue reading)

Aneesh Kumar | 1 Mar 07:22 2015

How to override evil-mode normal state binding

I am trying to override binding for 'q' for a minor mode. What is the right way to do it ? Using evil-define-key  doesn't seem to work.  For example i tried
 (evil-define-key 'normal magit-blame-mode "q" 'magit-blame-quit) and that doesn't seem to work. Even adding a new binding like 
 (evil-define-key 'normal magit-blame-mode "Q" 'magit-blame-quit) is not working.

I am using evil-mode from melpa 

implementations-list mailing list
implementations-list <at>
Nikolai Weibull | 16 Feb 11:05 2015

Stable release


Evil hasn’t been updated in Marmalade Repo since forever.  Will we be
seeing a stable release soon that can be included there?

If not, how does versioning work in Melpa?  I don’t particularly need
the bleeding edge that Melpa seems to promote, but perhaps Evil is
being versioned responsibly there?


implementations-list mailing list
implementations-list <at>
Nikolai Weibull | 16 Feb 11:01 2015

Evil-ret/evil-ret-and-indent and electric-indent-mode


Evil-ret/evil-ret-and-indent and electric-indent-mode, don’t seem to
play nice.  The problem is that evil-ret-gen calls newline without the
second argument, indicating that it’s being invoked interactively,
which it should do if evil-ret is, in fact, being invoked

implementations-list mailing list
implementations-list <at>
jenia.ivlev | 1 Feb 03:56 2015

How do use emacs-state in certain modes?


I want to use emacs-state in term-mode and undo-tree-mode.
How do I achieve that?
I tried:
    (add-to-list 'evil-emacs-state-modes undo-tree-mode)

This didn't work for some reason.

So again, What should I do to be in emacs-state in term-mode for

Thanks for your time and kind concern.
Chao Lu | 22 Jan 09:09 2015

About evil-ace-jump-char-mode

Dear list,

I'm trying to use evil-ace-jump-char-mode by:
(evil-leader/set-key "," 'evil-ace-jump-word-mode) ; ,, for Ace Jump (word)
(evil-leader/set-key "l" 'evil-ace-jump-line-mode) ; ,l for Ace Jump (line)

However, this seems not to be working with errors like:

let: Wrong type argument: commandp, ace-jump-word-mode

So I went into evil-integration.el and found indeed this is not a interactive function.
(evil-define-motion evil-ace-jump-word-mode (count)
  "Jump visually to the beginning of a word using ace-jump."
  :type exclusive
  :repeat abort
      (call-interactively 'ace-jump-word-mode))))

So I'm wondering how people is make use of ace-jump... Since there's configuration files like having lines like:

"SPC" 'evil-ace-jump-char-mode "S-SPC" 'evil-ace-jump-word-mode "C-SPC" 'evil-ace-jump-line-mode

Which apparently treat those as interactive functions to make use of...

I'm confused. So is there any comments/advice?



implementations-list mailing list
implementations-list <at>
Chao Lu | 20 Jan 03:21 2015


Dear list,

As a new user of evil, I love it a lot, but have some questions which I'm trying to tackle:

First, I want the emacs intial yank-pop back by:
(define-key evil-insert-state-map (kbd "M-y") 'yank-pop)
(define-key evil-normal-state-map (kbd "M-y") 'yank-pop)
(define-key evil-emacs-state-map (kbd "M-y") 'yank-pop)

however, evil keeps beeping at me: user-error: Previous command was not an evil-paste.


How to make evil behave like emacs when call end-of-line. i.e.

if we have a line like below:

when call end-of-line the cursor goes to $, instead of the char before $.


implementations-list mailing list
implementations-list <at>
Sylvain Benner | 17 Jan 07:04 2015

Programmatically call evil-find-char


I'm trying to call interactively from the code the function `evil-find-char` while in visual state like this:

    (call-interactively 'evil-find-char)

A simplistic use case will be the following simple wrapper function mapped on `f` key:

   (defun my-wrapper () (interactive) (call-interactively 'evil-find-char)) 

The observed behavior is that when I press on `f` the point is put of the next character with no selection, then when I press a second key then the selection does not include the second character (like if I pressed `t` in regular Vim).

For the complete story, I'm replacing the map of `evil-find-char` on `f` in order to be able to `escape` to normal state by quickly pressing `fd`. This is currently implemented in package `evil-escape` with key-chord which I want to drop because of several edge cases with Evil.
This `fd` as `ESC` is mainly used in spacemacs which is an Evil focused Emacs kit.

implementations-list mailing list
implementations-list <at>
Alan Schmitt | 13 Jan 09:57 2015

cannot bind evil-next-visual-line for selection mode


I'm trying to configure evil to use `evil-next-visual-line' by default
when I hit the 's' key. It works well in normal mode, but I cannot get
it to work in visual mode.

This is what I have in my configuration:

#+begin_src emacs-lisp
(define-key evil-motion-state-map "s" 'evil-next-visual-line)
(define-key evil-normal-state-map "s" 'evil-next-visual-line)

To reproduce, take a file with a long line, enter visual-line-mode, go
into visual mode and hit 's': the selection extends to the next line
instead of the next visual line.

I tried adding

#+begin_src emacs-lisp
(define-key evil-visual-state-map "s" 'evil-next-visual-line)

but it still does not work. Am I doing something wrong?




OpenPGP Key ID : 040D0A3B4ED2E5C7
implementations-list mailing list
implementations-list <at>
Alexander Shukaev | 8 Jan 21:18 2015

Bind plus and minus signs to operators

Hey guys,

Unfortunately, it seems to be not possible. Originally '-' and '+' are bound to motions and that certainly works. However, if one tries to bind them to some operators, then `evil-extract-count' throws 

Key sequence contains no complete binding

It's a bit difficult for me to understand the exact reason for that. Probably this has something to do with misinterpretation of prefix numeric arguments. Is it possible to fix that? If not, could you elaborate on why that would be not possible.

Thanks and regards,
implementations-list mailing list
implementations-list <at>
Tim Harper | 31 Dec 23:16 2014

[PATCH] use evil-word for symbol expansion

 evil-search.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-search.el b/evil-search.el
index f75c043..9814f24 100644
--- a/evil-search.el
+++ b/evil-search.el
 <at>  <at>  -273,7 +273,7  <at>  <at>  otherwise for the word at point."
            (not (string= string "")))
       (evil-search string forward t))
-      (setq string (evil-find-thing forward (if symbol 'symbol 'word)))
+      (setq string (evil-find-thing forward (if symbol 'symbol 'evil-word)))
        ((null string)
         (user-error "No word under point"))