<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Gordon and Frank,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks for the suggestion, it does indeed work :)<br><br>Silly me, I never realized that a key could be set to some other keystrokes rather than an elisp form...<br><br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Guido <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 January 2016 at 17:56, Gordon Gustafson <span dir="ltr"><<a href="mailto:gordon3.14@gmail.com" target="_blank">gordon3.14@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does this work?<br>
<br>
(define-key evil-normal-state-map (kbd "`") "viW*")<br>
<br>
Change the backtick to the key you want to bind to, of course.<br>
<div><div class="h5"><br>
On 1/27/16, Guido Van Hoecke <<a href="mailto:guivho@gmail.com">guivho@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am a happy user of evil-visualstar<br>
> (<a href="https://github.com/bling/evil-visualstar/blob/master/evil-visualstar.el" rel="noreferrer" target="_blank">https://github.com/bling/evil-visualstar/blob/master/evil-visualstar.el</a>)<br>
><br>
> I frequently use this key sequence: 'viW*' (without the quotes)<br>
><br>
> I'd like to write a short function that achieves this so that I can map it<br>
> to a single key in evil-normal-state-map, something like<br>
><br>
> (defun guivho-viW-star()<br>
> "Visual select inner WORD and search for it"<br>
> (interactive)<br>
> ;(select-inner-WORD-function-as-would-be-achieved-by-viW)<br>
> (evil-visualstar/begin-search-forward))<br>
><br>
> I've looked up what is called by 'v', and it claims to be defined in<br>
> evil-states-el, but I don't find it there. It claims to be defined as<br>
><br>
> (evil-visual-char &optional MARK POINT TYPE MESSAGE)<br>
><br>
> but I don/t know how to express the 'iW' part in that signature.<br>
><br>
> Please advise,<br>
><br>
> TIA,<br>
><br>
> Guido<br>
><br>
<br>
</div></div>_______________________________________________<br>
implementations-list mailing list<br>
<a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list" rel="noreferrer" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a><br>
</blockquote></div><br></div>