emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brandon Amos <bamos@cs.cmu.edu>
To: implementations-list@lists.ourproject.org, emacs-orgmode@gnu.org
Subject: Evil-mode keymapping being overridden by org-mode
Date: Thu, 6 Apr 2017 13:40:40 -0400	[thread overview]
Message-ID: <20170406174040.GA7347@gmail.com> (raw)

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.

             reply	other threads:[~2017-04-06 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06 17:40 Brandon Amos [this message]
2017-04-06 19:23 ` Evil-mode keymapping being overridden by org-mode Brandon Amos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170406174040.GA7347@gmail.com \
    --to=bamos@cs.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=implementations-list@lists.ourproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).