<div dir="ltr">Thanks for your help. I have implemented the change you suggested to unbind C-w.<br><br>When I do C-h k C-SPC it shows C-SPC- in the minbuffer, indicating that C-SPC has been set as a prefix key. After checking some more it seems to arise from the fact that I am using SPC as my leader, so in insert mode, C-SPC seems to be working like a leader key, although I may be completely off-base here.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 6:27 PM, Michael Markert <span dir="ltr"><<a href="mailto:markert.michael@gmail.com" target="_blank">markert.michael@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Sep 23 2014 (20:36), RC <<a href="mailto:recif@yahoo.com">recif@yahoo.com</a>> wrote:<br>
<br>
> evil-mode seems to take over the C-w and C-SPC key bindings.<br>
> I was able to unbind C-w using the following commands, but C-SPC still<br>
> seems bound in insert mode.<br>
<br>
C-w is bound to the window map,<br>
<br>
(define-key evil-motion-state-map (kbd "C-w") nil)<br>
<br>
should fix that for you.<br>
<br>
C-SPC, however, is not bound in any state. What does `C-h k C-SPC`<br>
report?<br>
<br>
> (eval-after-load "evil-maps"<br>
> (dolist (map '(evil-motion-state-map<br>
> evil-insert-state-map<br>
> evil-emacs-state-map))<br>
> (define-key (eval map) "\C-w" nil)))<br>
<br>
And this is broken, it will be evaluated right away, not after loading<br>
evil. You need to quote the form:<br>
<br>
(eval-after-load "evil-maps"<br>
'(dolist (map '(evil-motion-state-map<br>
evil-insert-state-map<br>
evil-emacs-state-map))<br>
(define-key (eval map) "\C-w" nil)))<br>
<br>
And using `list' instead of a quote makes `eval' unnecessary:<br>
<br>
(eval-after-load "evil-maps"<br>
'(dolist (map (list evil-motion-state-map<br>
evil-insert-state-map<br>
evil-emacs-state-map))<br>
(define-key map "\C-w" nil)))<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
<br>
</font></span></blockquote></div><br></div>