editor: Emacs 24.2; plugin: evil; platform: windows 8
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.
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).
I got an answer from the evil mailing list, and it works well!
(define-key evil-emacs-state-map (kbd "C-o") 'evil-execute-in-normal-state)