gmail | 4 Mar 01:53 2015
Picon

when in html-mode, annoying auto jump when typing '<'


-- 
gmail
Sent with Airmail
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Nikolai Weibull | 1 Mar 16:06 2015
Picon

Input-method during isearch

Hi!

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)
      (unwind-protect
          (apply fn args)
        (evil-change-state s)))))
(advice-add 'isearch-forward-regexp :around
'now-evil--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?

Thanks!

_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Aneesh Kumar | 1 Mar 07:22 2015
Picon

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 

-aneesh
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Nikolai Weibull | 16 Feb 11:05 2015
Picon

Stable release

Hi!

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?

Thanks!

_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Nikolai Weibull | 16 Feb 11:01 2015
Picon

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

Hi!

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
interactively.

_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
jenia.ivlev | 1 Feb 03:56 2015
Picon

How do use emacs-state in certain modes?


Hello.

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
exmaple?

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

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
  (evil-without-repeat
    (evil-enclose-ace-jump-for-motion
      (call-interactively 'ace-jump-word-mode))))
-----

So I'm wondering how people is make use of ace-jump... Since there's configuration files like https://raw.githubusercontent.com/cofi/dotfiles/master/emacs.d/config/cofi-evil.el 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?

Best,

Chao


_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Chao Lu | 20 Jan 03:21 2015
Picon

yank-pop

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.

Secondly,

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

if we have a line like below:
blabla$

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

Thanks,

Chao
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Sylvain Benner | 17 Jan 07:04 2015
Picon

Programmatically call evil-find-char

Hi,

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.

Cheers,
-syl20bnr-
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Alan Schmitt | 13 Jan 09:57 2015

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

Hello,

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)
#+end_src

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)
#+end_src

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

Thanks,

Alan

--

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Alexander Shukaev | 8 Jan 21:18 2015
Picon

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,
Alexander
_______________________________________________
implementations-list mailing list
implementations-list <at> lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Gmane