emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Evil-mode keymapping being overridden by org-mode (Brandon Amos)
@ 2017-04-07 17:17 Somelauw .
  0 siblings, 0 replies; only message in thread
From: Somelauw . @ 2017-04-07 17:17 UTC (permalink / raw)
  To: implementations-list, emacs-orgmode

> 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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-07 17:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 17:17 Evil-mode keymapping being overridden by org-mode (Brandon Amos) Somelauw .

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).