emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Somelauw ." <somelauw@gmail.com>
To: implementations-list@lists.ourproject.org, emacs-orgmode@gnu.org
Subject: Re: Evil-mode keymapping being overridden by org-mode (Brandon Amos)
Date: Fri, 7 Apr 2017 19:17:27 +0200	[thread overview]
Message-ID: <CA+gt_a_JSu6DwD+JiMHmeuGX0O-gYmHwq5r6KFxWb-2E8pkBAg@mail.gmail.com> (raw)

> Date: Thu, 6 Apr 2017 13:40:40 -0400
> From: Brandon Amos <bamos@cs.cmu.edu>
> To: implementations-list@lists.ourproject.org, emacs-orgmode@gnu.org
> Subject: [O] Evil-mode keymapping being overridden by org-mode
> Message-ID: <20170406174040.GA7347@gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> 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)
>
> -Brandon.

Dear Brandon,

The easiest solution is to put these lines in your config.
You can modify these lines to the way you want.

(evil-define-key 'normal evil-org-mode-map
    (kbd "t") 'evil-find-char-to
    (kbd "T") 'evil-find-char-to-backward
    (kbd "C-t") 'org-todo
    (kbd "O") 'evil-open-above
    (kbd "H") 'org-shiftleft
    (kbd "L") 'org-shiftright)

If you are experimental you can also try this unofficial fork of
evil-org-mode by me, which doesn't bind t to 'org-todo by default:
https://github.com/Somelauw/evil-org-improved/tree/develop
As a Dvorak user, you may want to customize the
evil-org-movement-bindings variable to get some bindings right.

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CA+gt_a_JSu6DwD+JiMHmeuGX0O-gYmHwq5r6KFxWb-2E8pkBAg@mail.gmail.com \
    --to=somelauw@gmail.com \
    --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).