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:
https://gitorious.org/evil/pages/Home
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))
[. . .]
next prev parent 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* 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 \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.