From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Emacs Prelude Date: Mon, 5 Dec 2011 00:14:09 -0600 Message-ID: References: <2bf2215563437dcc51cd9a681dd02ab3@cerebralrift.org> <87aa78gwbs.fsf@hermes.hocat.ca> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0d9c614380904b3523af0 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXRoa-0000K5-EL for emacs-orgmode@gnu.org; Mon, 05 Dec 2011 01:14:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXRoZ-0007ts-7j for emacs-orgmode@gnu.org; Mon, 05 Dec 2011 01:14:12 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:35364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXRoY-0007tf-Ue for emacs-orgmode@gnu.org; Mon, 05 Dec 2011 01:14:11 -0500 Received: by bkbzt12 with SMTP id zt12so3776972bkb.0 for ; Sun, 04 Dec 2011 22:14:10 -0800 (PST) In-Reply-To: <87aa78gwbs.fsf@hermes.hocat.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tom Prince Cc: emacs-orgmode@gnu.org, SndChaser --000e0ce0d9c614380904b3523af0 Content-Type: text/plain; charset=ISO-8859-1 Hi Tom, I'm very interested in the "vi emulation in emacs" subject. I've tried viper-mode but it's quite slow with org, so I gave up on it. What's evil and how's the vi emulation it provides? Could you elaborate on it? I'd appreciate it, a lot. Thanks, Marcelo. On Sun, Dec 4, 2011 at 10:01 AM, Tom Prince wrote: > On Fri, 02 Dec 2011 20:25:21 -0600, SndChaser > wrote: > > 2) Has someone bound: org-do-promote, org-do-demote, > > org-promote-subtree. org-demote-subtree, org-move-subtree-up and > > org-move-subtree-down to another set of keys that is as handy / workable > > as the original bindings? > > Well, I use the vi emulation provided by evil, and have bound > M-{h,j,k,l} to org-meta*: > > #+BEGIN_SRC emacs-lisp > (mapcar (lambda (state) > (evil-declare-key state org-mode-map > (kbd "M-l") 'org-metaright > (kbd "M-h") 'org-metaleft > (kbd "M-k") 'org-metaup > (kbd "M-j") 'org-metadown > (kbd "M-L") 'org-shiftmetaright > (kbd "M-H") 'org-shiftmetaleft > (kbd "M-K") 'org-shiftmetaup > (kbd "M-J") 'org-shiftmetadown)) > '(normal insert)) > #+END_SRC > > Tom > > --000e0ce0d9c614380904b3523af0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Tom,

I'm very interested in the "= vi=A0emulation in emacs" subject. I've tried viper-mode but it'= ;s quite slow with org, so I gave up on it. What's evil and how's t= he vi emulation it provides? Could you elaborate on it? I'd appreciate = it, a lot.

Thanks,

Marcelo.
On Sun, Dec 4, 2011 at 10:01 AM, Tom Prince <tom.prince@ua= lberta.net> wrote:
On Fri, 02 Dec 2011 20:25= :21 -0600, SndChaser <sndc= haser@cerebralrift.org> wrote:
> 2) Has someone bound: org-do-promote, org-do-demote,
> org-promote-subtree. org-demote-subtree, org-move-subtree-up and
> org-move-subtree-down to another set of keys that is as handy / workab= le
> as the original bindings?

Well, I use the vi emulation provided by evil, and have bound
M-{h,j,k,l} to org-meta*:

#+BEGIN_SRC emacs-lisp
=A0 =A0(mapcar (lambda (state)
=A0 =A0 =A0 =A0 =A0 (evil-declare-key state org-mode-map
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-l") 'org-metaright
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-h") 'org-metaleft
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-k") 'org-metaup
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-j") 'org-metadown
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-L") 'org-shiftmetaright
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-H") 'org-shiftmetaleft
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-K") 'org-shiftmetaup
=A0 =A0 =A0 =A0 =A0 =A0 (kbd "M-J") 'org-shiftmetadown))
=A0 =A0 =A0 =A0 '(normal insert))
#+END_SRC

=A0Tom


--000e0ce0d9c614380904b3523af0--