It works! I solved it!<div>Add these lines to init.el file </div><div><br></div><div><div>(global-unset-key "\C-o")</div><div>(global-set-key "\C-o" 'evil-execute-in-normal-state)</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 12:32 AM, lv yiwang <span dir="ltr"><<a href="mailto:lvyiwang.com@gmail.com" target="_blank">lvyiwang.com@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I try to move some functions to emacs-mode, but looks ugly~<div><br></div><div><div>(global-unset-key "\C-o")</div><div><br></div><div>; window hjkl oc tb sv</div><div>(global-set-key "\C-o\C-h" 'evil-window-left)</div>
<div>(global-set-key "\C-o\C-j" 'evil-window-down)</div><div>(global-set-key "\C-o\C-k" 'evil-window-up)</div><div>(global-set-key "\C-o\C-l" 'evil-window-right)</div><div>(global-set-key "\C-o\C-c" 'delete-window)</div>
<div>(global-set-key "\C-o\C-o" 'delete-other-windows)</div><div>(global-set-key "\C-o\C-t" 'evil-window-top-left)</div><div>(global-set-key "\C-o\C-b" 'evil-window-bottom-right)</div>
<div>(global-set-key "\C-o\C-s" 'split-window-vertically)</div><div>(global-set-key "\C-o\C-v" 'split-window-horizontally)</div><div><br></div><div>; motion</div><div>(global-set-key "\C-ogg" 'evil-goto-first-line)</div>
<div>(global-set-key "\C-oG" 'evil-goto-line)</div></div><div class="HOEnZb"><div class="h5"><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 7:01 PM, <span dir="ltr"><<a href="mailto:implementations-list-request@lists.ourproject.org" target="_blank">implementations-list-request@lists.ourproject.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send implementations-list mailing list submissions to<br>
<a href="mailto:implementations-list@lists.ourproject.org" target="_blank">implementations-list@lists.ourproject.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
<br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:implementations-list-request@lists.ourproject.org" target="_blank">implementations-list-request@lists.ourproject.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:implementations-list-owner@lists.ourproject.org" target="_blank">implementations-list-owner@lists.ourproject.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of implementations-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Temporary execution in evil state with C-o (just like using \<br>
to temporary execution in emacs state) (lv yiwang)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 22 Nov 2012 18:41:38 +0800<br>
From: lv yiwang <<a href="mailto:lvyiwang.com@gmail.com" target="_blank">lvyiwang.com@gmail.com</a>><br>
Subject: Temporary execution in evil state with C-o (just like using \<br>
to temporary execution in emacs state)<br>
To: <a href="mailto:implementations-list@lists.ourproject.org" target="_blank">implementations-list@lists.ourproject.org</a><br>
Message-ID:<br>
<<a href="mailto:CAELkqXtzei_BujDr_dA6ZcLrx-YSe2fGB5_97Jgjbt%2BkUQB-cg@mail.gmail.com" target="_blank">CAELkqXtzei_BujDr_dA6ZcLrx-YSe2fGB5_97Jgjbt+kUQB-cg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I have tried my best to read the doc-evil file and to search the mailing<br>
list, but no answers were found.<br>
I use emacs-mode of evil most of the time, and I have unset the C-o key<br>
<br>
What's "Temporary execution in evil state with C-o"?<br>
<br>
For example:<br>
-1, If I am in emacs mode, and I want to jump to the beginning-of-buffer<br>
with gg<br>
-2, I can do it like this, C-z to normal-mode, then gg to the beginning,<br>
then C-z to emacs mode.<br>
*3, I don't like this way, if I am in emacs-mode, I want to use C-o to<br>
normal-mode, and gg to the<br>
beginning, *but after using gg, **the buffer automatically come back into<br>
emacs-mode**.*<br>
-4, And I think that would be a great convenient for me,I can also use C-o<br>
dib to delete contents in brackets<br>
without leaving emacs-mode(because after C-o dib, the buffer automatically<br>
back into emacs-mode).<br>
<br>
Thanks!<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="https://lists.ourproject.org/pipermail/implementations-list/attachments/20121122/a9a7ca89/attachment-0001.htm" target="_blank">https://lists.ourproject.org/pipermail/implementations-list/attachments/20121122/a9a7ca89/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
implementations-list mailing list<br>
<a href="mailto:implementations-list@lists.ourproject.org" target="_blank">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>
<br>
<br>
End of implementations-list Digest, Vol 49, Issue 11<br>
****************************************************<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>