I'm not clear on what you're doing, but it sounds like you might want to use Emacs key translations. To see how to do Evilish key translations, see the EmacsWiki Evil page.<br><br><br><br><div class="gmail_quote">
On Sat, Nov 17, 2012 at 6:55 PM, damien.thiriet77 <span dir="ltr"><<a href="mailto:damien.thiriet77@laposte.net" target="_blank">damien.thiriet77@laposte.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
<br>
I have to change my keyboard layout when switching from french bépo to Polish layout, that I use only for writing text in emacs. Unfortunately, these changes are quite messing, since most apps I use are vimish like. I made a minor-mode dedicated to Polish and I would like to use insert-map to switch the keyboard layout in an quite unorthodox way. Unfortunately, (define-key evil-insert-local-map "e" '(quote a)) does not work. According to define-key doc, DEF should be a string that can be called interactively. What shall I do? Is there a way to make such a (indeed weird) mapping?<br>
<br>
I know this sounds quite crazy, but it would really be a great spare of time (I wouldn’t have to change configuration of other apps, and per-window keyboard layout switch on linux is complicated since I am using my own keyboard layouts, calling emacs in -nw and changing the layout in zsh is precisely the thing I would like to avoid, because of my vimish bindings)!<br>
<br>
Thanks,<br>
<br>
<br>
<br>
Damien Thiriet<br>
<br>
<br>
<br>
<br>
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?<br>
Je crée ma boîte mail <a href="http://www.laposte.net" target="_blank">www.laposte.net</a><br>
<br>
_______________________________________________<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" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a><br>
</blockquote></div><br>