emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Herbert Sitz <hesitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: adding custom org-keymaps for EVIL Vim emulator
Date: Tue, 28 Feb 2012 23:59:23 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120229T005247-516@post.gmane.org> (raw)
In-Reply-To: loom.20120229T004428-203@post.gmane.org

Herbert Sitz <hesitz <at> gmail.com> writes:

> (define-minor-mode evil-org-mode
> "minor mode to add evil keymappings to Org-mode."
> :keymap (make-sparse-keymap)
> (evil-local-mode t))

Whoops, I left out the earlier lines to load and enable Evil. They are
below.  I commented out the (evil-mode 1), which enables evil-mode
in all buffers and instead call evil-local-mode in the hook function
that's called when a buffer is set to 'org' type.  I assume there's 
some better way to do this, since I do want to use Evil mode in 
most buffers, not just org buffers.  But I was having problems in
the date-editing mini buffer if I had (evil-mode 1) so I took the
easy way of getting rid of that. . . 

Also, Evil must of course be installed before you can do these
custom mappings. Here's home page for Evil:

vvvvv  below to be in .emacs file vvvvv
(add-to-list 'load-path "c:/Program Files (x86)/Emacs/emacs/lisp/evil")
   (require 'evil)
   ; comment out line below to activate evil only in org-buffers
   ;(evil-mode 1)

; lines above go in .emacs above lines from previous post, which
; start as. . .

(define-minor-mode evil-org-mode
"minor mode to add evil keymappings to Org-mode."
:keymap (make-sparse-keymap)
(evil-local-mode t))

[. . .]

  reply	other threads:[~2012-02-28 23:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 23:50 adding custom org-keymaps for EVIL Vim emulator Herbert Sitz
2012-02-28 23:59 ` Herbert Sitz [this message]
2012-05-07  5:12 ` Eric S Fraga

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:

  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=loom.20120229T005247-516@post.gmane.org \
    --to=hesitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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