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