<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div><div>I am under _terminal_ emacs.<br></div><div><br><br></div>I&#39;d like to bind &lt;esc&gt; to a command(actually evil-motion-state) when I am under evil motion state, while keeping other binding, namely, M-0 usable.<br><br></div><div>Since M-0 sends ^[0 while &quot;esc&quot; simply sends ^[, that&#39;s the problem here.<br><br></div>I&#39;d guess the method is the same as how &quot;esc&quot; binding is done under the normal state, e.g., use a time limit to test whether it&#39;s a &quot;esc&quot; or it&#39;s a M-0.<br><br><br></div>Why I need this?<br></div>It&#39;s because, for example, when I do a &quot;c-h c-c c-c&quot;, I am dropped into the help window.<br></div>It&#39;s in the motion state.<br><br></div>I&#39;ve been in the habit of unconsciously hitting the &lt;esc&gt; key.<br><br></div><div><div><div><div><div><div><div><br><br clear="all"><div><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div>吾輩は猫である。ホームーページは<a href="http://introo.me" target="_blank">https://introo.me</a>。<br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div>