From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brandon Amos Subject: Evil-mode keymapping being overridden by org-mode Date: Thu, 6 Apr 2017 13:40:40 -0400 Message-ID: <20170406174040.GA7347@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwBOq-0005Pb-Sx for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 13:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwBOl-0008Ka-M7 for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 13:40:48 -0400 Received: from mail-qt0-f175.google.com ([209.85.216.175]:33357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwBOl-0008KS-H8 for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 13:40:43 -0400 Received: by mail-qt0-f175.google.com with SMTP id i34so42455445qtc.0 for ; Thu, 06 Apr 2017 10:40:43 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: implementations-list@lists.ourproject.org, emacs-orgmode@gnu.org Hi, I am mapping the "t" character in evil normal/motion modes to `evil-next-line` with the following. I am doing this mapping for reasonable navigation with the Dvorak layout. (define-key evil-normal-state-map "t" 'evil-next-line) (define-key evil-motion-state-map "t" 'evil-next-line) This works well, except in one case when org mode over-rides my mapping with `org-todo`: 1. Open Emacs and an org file 2. In normal mode, `C-h k t` shows that `t` is bound to evil-next-line. 3. Open the agenda with `C-a a` 4. Close the agenda buffer with `C-x 0` 5. In normal mode, `C-h k t` shows that `t` is bound to `org-todo` How can I prevent opening the agenda buffer from over-writing this key mapping like this? I've tried searching for ways to unset this org-mode keyboard mapping and ways to define keyboard mappings that can't be over-ridden, but I haven't been able to find anything that works. If it is helpful, I am using this version of spacemacs: https://github.com/syl20bnr/spacemacs/tree/c2774bc0dea3dbc63621709d54685fbbe9212d55 My (near-vanilla) spacemacs init file is here. I set the evil keymappings in dotspacemacs/user-config: https://github.com/bamos/dotfiles/blob/master/.spacemacs.d/init.el -Brandon.