* evil-mode and org
@ 2017-03-28 12:57 Matt Price
2017-03-28 13:23 ` Peter Neilson
[not found] ` <e73a5e1e52db498f95cf60c7a983be27@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
0 siblings, 2 replies; 13+ messages in thread
From: Matt Price @ 2017-03-28 12:57 UTC (permalink / raw)
To: Org Mode
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
I've never used Vim but I see a lot of people online raving about evil mode
and how much they love it. I'm considering giving it a whirl after the
semester ends & I get some free time. I just wondered whether any heavy org
users here on the list use evil, and if so, whether you see pain points
within org-mode -- my setup is pretty heavily customized, for instance, and
I wonder whether that means it will be quite painful to use evil.
Thanks!
Matt
[-- Attachment #2: Type: text/html, Size: 523 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-28 12:57 Matt Price
@ 2017-03-28 13:23 ` Peter Neilson
2017-03-29 15:12 ` John Kitchin
2017-03-30 1:37 ` John Hendy
[not found] ` <e73a5e1e52db498f95cf60c7a983be27@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 2 replies; 13+ messages in thread
From: Peter Neilson @ 2017-03-28 13:23 UTC (permalink / raw)
To: emacs-orgmode
On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price <moptop99@gmail.com> wrote:
> I've never used Vim but I see a lot of people online raving about evil
> mode
> and how much they love it. I'm considering giving it a whirl after the
> semester ends & I get some free time. I just wondered whether any heavy
> org
> users here on the list use evil, and if so, whether you see pain points
> within org-mode -- my setup is pretty heavily customized, for instance,
> and
> I wonder whether that means it will be quite painful to use evil.
You will also find people asking why anyone would ever think of using vim.
One of those is Aaron Bieber.
https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html
I use vim only when unavoidable, and I simply pretend it is ed (of ancient
Unix days). Or maybe I just use ed. I would not bother trying to use ed to
access org, and thus would not be tempted to use vi, vim or evil mode for
org, either. One fine day, long, long ago, I had to use a Vax that did not
have emacs, vim, vi or ed. It did have whatever DEC was using for an
editor, but I didn't know how to use it instantly. What to do? What to do?
I tried running TECO. Yes, it had TECO! Saved! (Sort of.)
Why use vim if emacs is already built into your fingertips?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
[not found] <1a0d15aafd944fa3864394d8e212046f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-03-29 15:11 ` Eric S Fraga
2017-03-30 10:14 ` Guido Van Hoecke
[not found] ` <2addcb35f67b455ba02295550e5b2ec7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
0 siblings, 2 replies; 13+ messages in thread
From: Eric S Fraga @ 2017-03-29 15:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]
On Tuesday, 28 Mar 2017 at 12:57, Matt Price wrote:
> I've never used Vim but I see a lot of people online raving about evil
> mode and how much they love it. I'm considering giving it a whirl
> after the semester ends & I get some free time. I just wondered
> whether any heavy org users here on the list use evil, and if so,
> whether you see pain points within org-mode -- my setup is pretty
> heavily customized, for instance, and I wonder whether that means it
> will be quite painful to use evil.
I use evil and org all day long. Basically, there is very little clash
between them so they co-exist very nicely. One of the best things about
evil is that it is almost orthogonal to emacs and you can continue using
most C-x and C-c keymap bindings.
In my case, I did add a number of bindings to evil's normal and motion
keymaps to avoid typing C-c etc. as my motivation in using evil is to
avoid exacerbating my RSI. Almost all my commands are non-chorded key
sequences. I barely use the control, shift and meta keys in normal
use.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-28 13:23 ` Peter Neilson
@ 2017-03-29 15:12 ` John Kitchin
2017-03-29 17:36 ` Peter Neilson
2017-03-30 1:33 ` John Hendy
2017-03-30 1:37 ` John Hendy
1 sibling, 2 replies; 13+ messages in thread
From: John Kitchin @ 2017-03-29 15:12 UTC (permalink / raw)
To: Peter Neilson; +Cc: emacs-orgmode
Using evil-mode is not "using vim" IMHO. I think this is a question of
do you want modal editing or not (I suppose it could also be do you want
emacs-lisp or vimscript, but that is not the impression I get these days
;). With emacs you can have either traditional emacs editing (one-mode:
edit) or modal editing like vim (for the most part). And you can still
use emacs-lisp to customize the environment so you can have things like
org-mode.
I have seen a growing movement towards modal editing in emacs, e.g.
evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things
modally myself with those tools.
Peter Neilson writes:
> On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price <moptop99@gmail.com> wrote:
>
>> I've never used Vim but I see a lot of people online raving about evil
>> mode
>> and how much they love it. I'm considering giving it a whirl after the
>> semester ends & I get some free time. I just wondered whether any heavy
>> org
>> users here on the list use evil, and if so, whether you see pain points
>> within org-mode -- my setup is pretty heavily customized, for instance,
>> and
>> I wonder whether that means it will be quite painful to use evil.
>
> You will also find people asking why anyone would ever think of using vim.
> One of those is Aaron Bieber.
> https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html
>
> I use vim only when unavoidable, and I simply pretend it is ed (of ancient
> Unix days). Or maybe I just use ed. I would not bother trying to use ed to
> access org, and thus would not be tempted to use vi, vim or evil mode for
> org, either. One fine day, long, long ago, I had to use a Vax that did not
> have emacs, vim, vi or ed. It did have whatever DEC was using for an
> editor, but I didn't know how to use it instantly. What to do? What to do?
> I tried running TECO. Yes, it had TECO! Saved! (Sort of.)
>
> Why use vim if emacs is already built into your fingertips?
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
[not found] ` <e73a5e1e52db498f95cf60c7a983be27@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-03-29 15:21 ` Eric S Fraga
0 siblings, 0 replies; 13+ messages in thread
From: Eric S Fraga @ 2017-03-29 15:21 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
On Tuesday, 28 Mar 2017 at 13:23, Peter Neilson wrote:
> You will also find people asking why anyone would ever think of using
> vim.
[...]
> Why use vim if emacs is already built into your fingertips?
I don't think the OP was intending on using vim (although nothing wrong
with that in any case ;-)). The proposal was to use evil-mode in
Emacs. There are many reasons for doing so, given that one wishes to
continue using emacs. Two that apply for me are avoiding RSI issues (no
keyboard chords) and I prefer modal editing (benefits in movement and
word/sentence operations).
I did start with vi (Unix v7 on PDP 11/45) but switched to emacs a few
years later (in 1984/5, BSD Unix on a Vax 11/780), using emacs almost
exclusively since then. Evil has been a godsend for me.
YMMV of course!
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-29 15:12 ` John Kitchin
@ 2017-03-29 17:36 ` Peter Neilson
2017-03-30 1:33 ` John Hendy
1 sibling, 0 replies; 13+ messages in thread
From: Peter Neilson @ 2017-03-29 17:36 UTC (permalink / raw)
To: emacs-orgmode
On Wed, 29 Mar 2017 11:12:22 -0400, John Kitchin <jkitchin@andrew.cmu.edu>
wrote:
> Using evil-mode is not "using vim" IMHO. I think this is a question of
> do you want modal editing or not (I suppose it could also be do you want
> emacs-lisp or vimscript, but that is not the impression I get these days
> ;). With emacs you can have either traditional emacs editing (one-mode:
> edit) or modal editing like vim (for the most part). And you can still
> use emacs-lisp to customize the environment so you can have things like
> org-mode.
>
> I have seen a growing movement towards modal editing in emacs, e.g.
> evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things
> modally myself with those tools.
Thinking historically, I see modal editing in TECO, where everything
between "i" and "$" (the ESC key) was insert mode, and everything else was
a command. Woe unto the person who omitted the "i" or who inadvertently
ended insert mode, because all other text was commands. For example,
ihxhgh$ inserts "hxhgh" but just hxhgh$ duplicates the entire buffer.
Here is a sample TECO session:
*hkiHere is some text that I am inserting.
Here is another line.
$$
*ht$$
Here is some text that I am inserting.
Here is another line.
*zjiThis is a new bottom line. Next we try forgetting an "i" command.
$$
*here is a forgotten i command
$$
?SYS No such file or directory
?UFI unable to open file e is a forgotten i command<CR><LF> for input
*
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-29 15:12 ` John Kitchin
2017-03-29 17:36 ` Peter Neilson
@ 2017-03-30 1:33 ` John Hendy
1 sibling, 0 replies; 13+ messages in thread
From: John Hendy @ 2017-03-30 1:33 UTC (permalink / raw)
To: John Kitchin; +Cc: Peter Neilson, emacs-orgmode
On Wed, Mar 29, 2017 at 10:12 AM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
> Using evil-mode is not "using vim" IMHO. I think this is a question of
> do you want modal editing or not (I suppose it could also be do you want
> emacs-lisp or vimscript, but that is not the impression I get these days
> ;). With emacs you can have either traditional emacs editing (one-mode:
> edit) or modal editing like vim (for the most part). And you can still
> use emacs-lisp to customize the environment so you can have things like
> org-mode.
Totally agreed. I possibly learned of evil-mode via Aaron as mentioned by Peter:
- https://www.youtube.com/watch?v=JWD1Fpdd4Pc
It's been on my todo list to try... I just haven't yet. I see
evil-mode as using some of the better navigation aspects of vim inside
the already awesome org-mode. Indeed, one of Aaron's main points (and
he struck me as a power user of both emacs and vim, so I think he has
the background to make the claim) is why anyone would try to replicate
all the awesomeness of emacs/org in something like vim when it already
exists.
My takeaway is that evil-mode acknowledges that folks want to be in
emacs for it's features, while also acknowledging that emacs
keybindings can be horrible (and vim's are better).
John
>
> I have seen a growing movement towards modal editing in emacs, e.g.
> evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things
> modally myself with those tools.
>
> Peter Neilson writes:
>
>> On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price <moptop99@gmail.com> wrote:
>>
>>> I've never used Vim but I see a lot of people online raving about evil
>>> mode
>>> and how much they love it. I'm considering giving it a whirl after the
>>> semester ends & I get some free time. I just wondered whether any heavy
>>> org
>>> users here on the list use evil, and if so, whether you see pain points
>>> within org-mode -- my setup is pretty heavily customized, for instance,
>>> and
>>> I wonder whether that means it will be quite painful to use evil.
>>
>> You will also find people asking why anyone would ever think of using vim.
>> One of those is Aaron Bieber.
>> https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html
>>
>> I use vim only when unavoidable, and I simply pretend it is ed (of ancient
>> Unix days). Or maybe I just use ed. I would not bother trying to use ed to
>> access org, and thus would not be tempted to use vi, vim or evil mode for
>> org, either. One fine day, long, long ago, I had to use a Vax that did not
>> have emacs, vim, vi or ed. It did have whatever DEC was using for an
>> editor, but I didn't know how to use it instantly. What to do? What to do?
>> I tried running TECO. Yes, it had TECO! Saved! (Sort of.)
>>
>> Why use vim if emacs is already built into your fingertips?
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-28 13:23 ` Peter Neilson
2017-03-29 15:12 ` John Kitchin
@ 2017-03-30 1:37 ` John Hendy
1 sibling, 0 replies; 13+ messages in thread
From: John Hendy @ 2017-03-30 1:37 UTC (permalink / raw)
To: Peter Neilson; +Cc: emacs-orgmode
On Tue, Mar 28, 2017 at 8:23 AM, Peter Neilson <neilson@windstream.net> wrote:
> On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price <moptop99@gmail.com> wrote:
>
>> I've never used Vim but I see a lot of people online raving about evil
>> mode
>> and how much they love it. I'm considering giving it a whirl after the
>> semester ends & I get some free time. I just wondered whether any heavy
>> org
>> users here on the list use evil, and if so, whether you see pain points
>> within org-mode -- my setup is pretty heavily customized, for instance,
>> and
>> I wonder whether that means it will be quite painful to use evil.
>
>
> You will also find people asking why anyone would ever think of using vim.
> One of those is Aaron Bieber.
> https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html
I posted in response to John, but funny enough Aaron gives a talk on
evil-mode as well. From the talk he was a heaaavvvy vim user, so I
think it might be more accurate to say: "why would anyone use vim
*given emacs* (he came from vim, after all)?" Equally strong in his
talk (so I assume his philosophy in general) is: "why would anyone use
emacs keybindings *given vim's*?"
John
>
> I use vim only when unavoidable, and I simply pretend it is ed (of ancient
> Unix days). Or maybe I just use ed. I would not bother trying to use ed to
> access org, and thus would not be tempted to use vi, vim or evil mode for
> org, either. One fine day, long, long ago, I had to use a Vax that did not
> have emacs, vim, vi or ed. It did have whatever DEC was using for an editor,
> but I didn't know how to use it instantly. What to do? What to do? I tried
> running TECO. Yes, it had TECO! Saved! (Sort of.)
>
> Why use vim if emacs is already built into your fingertips?
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-29 15:11 ` evil-mode and org Eric S Fraga
@ 2017-03-30 10:14 ` Guido Van Hoecke
2017-03-30 17:03 ` Guido Van Hoecke
[not found] ` <2addcb35f67b455ba02295550e5b2ec7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 1 reply; 13+ messages in thread
From: Guido Van Hoecke @ 2017-03-30 10:14 UTC (permalink / raw)
To: orgmode
[-- Attachment #1: Type: text/plain, Size: 2067 bytes --]
Eric,
Care to share your org-evil mappings?
One 'conflict' which bites me every time is this:
I hit /blabla to locate a heading directly under which I want to insert a
text line.
I then hit enter to acknowledge the find.
The display shows the heading line followed by its body lines (which all
start with a hyphen)
I then hit o to insert a line directly under the heading and before the
first existing detail line.
The result is however that the heading body closes, and that a line is
added before the next header line, so under all existing detail lines of
this header line.
This undesired behavior only happens if the heading was closed at the time
of the find. If the find locates an open heading, hitting enter and than o
behaves as expected.
Any suggestions on how this can be fixed would be most welcome :)
TIA,
Guido
On 29 March 2017 at 17:11, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Tuesday, 28 Mar 2017 at 12:57, Matt Price wrote:
> > I've never used Vim but I see a lot of people online raving about evil
> > mode and how much they love it. I'm considering giving it a whirl
> > after the semester ends & I get some free time. I just wondered
> > whether any heavy org users here on the list use evil, and if so,
> > whether you see pain points within org-mode -- my setup is pretty
> > heavily customized, for instance, and I wonder whether that means it
> > will be quite painful to use evil.
>
> I use evil and org all day long. Basically, there is very little clash
> between them so they co-exist very nicely. One of the best things about
> evil is that it is almost orthogonal to emacs and you can continue using
> most C-x and C-c keymap bindings.
>
> In my case, I did add a number of bindings to evil's normal and motion
> keymaps to avoid typing C-c etc. as my motivation in using evil is to
> avoid exacerbating my RSI. Almost all my commands are non-chorded key
> sequences. I barely use the control, shift and meta keys in normal
> use.
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
>
[-- Attachment #2: Type: text/html, Size: 2822 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
[not found] ` <2addcb35f67b455ba02295550e5b2ec7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-03-30 15:48 ` Eric S Fraga
2017-04-10 12:22 ` Matt Price
[not found] ` <013bacb6be3a49b1b8633fb7d2ad1ddc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
0 siblings, 2 replies; 13+ messages in thread
From: Eric S Fraga @ 2017-03-30 15:48 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 3640 bytes --]
On Thursday, 30 Mar 2017 at 10:14, Guido Van Hoecke wrote:
> Eric,
>
> Care to share your org-evil mappings?
sure:
#+begin_src emacs-lisp
(defun esf/evil-key-bindings-for-org ()
;;(message "Defining evil key bindings for org")
(when (fboundp 'evil-declare-key)
;; normal, motion and visual commands
(mapcar (lambda (state)
(evil-declare-key state org-mode-map
" " 'evil-scroll-down
" e" 'org-edit-special
" g" 'org-babel-goto-named-src-block
" j" 'org-babel-next-src-block
" k" 'org-babel-previous-src-block
" l" 'org-next-link
" n" 'org-babel-next-src-block
" p" 'org-babel-previous-src-block
" u" 'outline-up-heading
"gh" 'outline-up-heading
"gj" 'org-forward-heading-same-level
"gk" 'org-backward-heading-same-level
"gl" 'outline-next-visible-heading
"t" 'org-todo ; mark a TODO item as DONE
",e" 'org-export-dispatch
",i" 'org-inlinetask-insert-task
",l" 'org-insert-link
",L" 'org-store-link
",n" 'outline-next-visible-heading
",oa" #'org-annotate-add-note
",od" #'org-annotate-display-notes
",p" 'outline-previous-visible-heading
",r" 'org-ref-insert-cite-link
;; ",t" 'org-set-tags-command
",u" 'outline-up-heading
"$" 'org-end-of-line ; smarter behaviour on headlines etc.
"^" 'org-beginning-of-line ; ditto
"-" 'org-ctrl-c-minus ; change bullet style
"<" 'org-metaleft ; out-dent
">" 'org-metaright ; indent
(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 motion visual))
;; and these are only for motion and visual so that . does not repeat them
(mapcar (lambda (state)
(evil-declare-key state org-mode-map
"H" 'org-beginning-of-line ; smarter behaviour on headlines etc.
;; "L" 'end-of-line ; do not want "smarter" behaviour on headlines etc.
"L" 'org-end-of-line ; do not want "smarter" behaviour on headlines etc.
))
'(motion visual))
(evil-declare-key 'insert org-mode-map
(kbd "<backspace>") 'hungry-delete-backward
(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)
(when (not esf/pandora-p)
(evil-declare-key 'insert org-mode-map
(kbd "<backspace>") 'hungry-delete-backward))))
#+end_src
> One 'conflict' which bites me every time is this:
I cannot help with this unfortunately other than to maybe trying to
advise the search function...
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-30 10:14 ` Guido Van Hoecke
@ 2017-03-30 17:03 ` Guido Van Hoecke
0 siblings, 0 replies; 13+ messages in thread
From: Guido Van Hoecke @ 2017-03-30 17:03 UTC (permalink / raw)
To: orgmode
[-- Attachment #1: Type: text/plain, Size: 3182 bytes --]
Eric,
You already mentioned your mappings in
http://lists.gnu.org/archive/html/emacs-orgmode/2012-05/msg00153.html
Thanks!
Finally got myself to write a little lisp to solve my problem and mapped it
to go
For what it's worth, here it is (but it solves a very specific problem):
(defun guivho-insert-topic-under-heading()
"Expand heading and insert hyphen and inactive timestamp.
Cursor is expected to be in an org header line"
(interactive)
(let ((sp " ")
(hyphen "-"))
(org-end-of-line)
(evil-append 1)
(org-return)
(insert hyphen sp)
(org-time-stamp nil t)
(insert sp)
(evil-force-normal-state)
(evil-append 0)))
This now always inserts a 'dash space timestamp space' line immediately
under the current org header, whether it was collapsed or not.
Hey, it's not beautiful, but it solves my problem :)
And, to whom it may concern, org and evil make a nice combo :)
Guido
On 30 March 2017 at 12:14, Guido Van Hoecke <guivho@gmail.com> wrote:
>
>
> Eric,
>
> Care to share your org-evil mappings?
>
> One 'conflict' which bites me every time is this:
>
> I hit /blabla to locate a heading directly under which I want to insert a
> text line.
>
> I then hit enter to acknowledge the find.
>
> The display shows the heading line followed by its body lines (which all
> start with a hyphen)
>
> I then hit o to insert a line directly under the heading and before the
> first existing detail line.
>
> The result is however that the heading body closes, and that a line is
> added before the next header line, so under all existing detail lines of
> this header line.
>
> This undesired behavior only happens if the heading was closed at the time
> of the find. If the find locates an open heading, hitting enter and than o
> behaves as expected.
>
> Any suggestions on how this can be fixed would be most welcome :)
>
> TIA,
>
> Guido
>
> On 29 March 2017 at 17:11, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
>> On Tuesday, 28 Mar 2017 at 12:57, Matt Price wrote:
>> > I've never used Vim but I see a lot of people online raving about evil
>> > mode and how much they love it. I'm considering giving it a whirl
>> > after the semester ends & I get some free time. I just wondered
>> > whether any heavy org users here on the list use evil, and if so,
>> > whether you see pain points within org-mode -- my setup is pretty
>> > heavily customized, for instance, and I wonder whether that means it
>> > will be quite painful to use evil.
>>
>> I use evil and org all day long. Basically, there is very little clash
>> between them so they co-exist very nicely. One of the best things about
>> evil is that it is almost orthogonal to emacs and you can continue using
>> most C-x and C-c keymap bindings.
>>
>> In my case, I did add a number of bindings to evil's normal and motion
>> keymaps to avoid typing C-c etc. as my motivation in using evil is to
>> avoid exacerbating my RSI. Almost all my commands are non-chorded key
>> sequences. I barely use the control, shift and meta keys in normal
>> use.
>>
>> --
>> : Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
>>
>
>
[-- Attachment #2: Type: text/html, Size: 4639 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
2017-03-30 15:48 ` Eric S Fraga
@ 2017-04-10 12:22 ` Matt Price
[not found] ` <013bacb6be3a49b1b8633fb7d2ad1ddc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 0 replies; 13+ messages in thread
From: Matt Price @ 2017-04-10 12:22 UTC (permalink / raw)
To: Eric S Fraga, Org Mode
[-- Attachment #1: Type: text/plain, Size: 4033 bytes --]
I kind of let this thread drop, but I just wanted to say thanks to everyone
for sharing. I am interested in exploring modal editing, maybe in June
which, it turns out, is when I *actually* will have free time...
thanks everyone!
On Thu, Mar 30, 2017 at 11:48 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Thursday, 30 Mar 2017 at 10:14, Guido Van Hoecke wrote:
> > Eric,
> >
> > Care to share your org-evil mappings?
>
> sure:
>
> #+begin_src emacs-lisp
> (defun esf/evil-key-bindings-for-org ()
> ;;(message "Defining evil key bindings for org")
> (when (fboundp 'evil-declare-key)
> ;; normal, motion and visual commands
> (mapcar (lambda (state)
> (evil-declare-key state org-mode-map
> " " 'evil-scroll-down
> " e" 'org-edit-special
> " g" 'org-babel-goto-named-src-block
> " j" 'org-babel-next-src-block
> " k" 'org-babel-previous-src-block
> " l" 'org-next-link
> " n" 'org-babel-next-src-block
> " p" 'org-babel-previous-src-block
> " u" 'outline-up-heading
> "gh" 'outline-up-heading
> "gj" 'org-forward-heading-same-level
> "gk" 'org-backward-heading-same-level
> "gl" 'outline-next-visible-heading
> "t" 'org-todo ; mark a TODO item as DONE
> ",e" 'org-export-dispatch
> ",i" 'org-inlinetask-insert-task
> ",l" 'org-insert-link
> ",L" 'org-store-link
> ",n" 'outline-next-visible-heading
> ",oa" #'org-annotate-add-note
> ",od" #'org-annotate-display-notes
> ",p" 'outline-previous-visible-heading
> ",r" 'org-ref-insert-cite-link
> ;; ",t" 'org-set-tags-command
> ",u" 'outline-up-heading
> "$" 'org-end-of-line ; smarter behaviour on headlines
> etc.
> "^" 'org-beginning-of-line ; ditto
> "-" 'org-ctrl-c-minus ; change bullet style
> "<" 'org-metaleft ; out-dent
> ">" 'org-metaright ; indent
> (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 motion visual))
> ;; and these are only for motion and visual so that . does not
> repeat them
> (mapcar (lambda (state)
> (evil-declare-key state org-mode-map
> "H" 'org-beginning-of-line ; smarter behaviour on
> headlines etc.
> ;; "L" 'end-of-line ; do not want "smarter" behaviour on
> headlines etc.
> "L" 'org-end-of-line ; do not want "smarter" behaviour
> on headlines etc.
> ))
> '(motion visual))
> (evil-declare-key 'insert org-mode-map
> (kbd "<backspace>") 'hungry-delete-backward
> (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)
> (when (not esf/pandora-p)
> (evil-declare-key 'insert org-mode-map
> (kbd "<backspace>") 'hungry-delete-backward))))
> #+end_src
>
> > One 'conflict' which bites me every time is this:
>
> I cannot help with this unfortunately other than to maybe trying to
> advise the search function...
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
>
[-- Attachment #2: Type: text/html, Size: 5979 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: evil-mode and org
[not found] ` <013bacb6be3a49b1b8633fb7d2ad1ddc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-04-10 14:49 ` Eric S Fraga
0 siblings, 0 replies; 13+ messages in thread
From: Eric S Fraga @ 2017-04-10 14:49 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
On Monday, 10 Apr 2017 at 12:22, Matt Price wrote:
> I kind of let this thread drop, but I just wanted to say thanks to
> everyone for sharing. I am interested in exploring modal editing,
> maybe in June which, it turns out, is when I *actually* will have free
> time...
Let us know, in due course, how you get on. Modal editing is
potentially very advantageous but it is very much a personal thing!
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.5-385-g72fc2d
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-04-10 23:25 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1a0d15aafd944fa3864394d8e212046f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-29 15:11 ` evil-mode and org Eric S Fraga
2017-03-30 10:14 ` Guido Van Hoecke
2017-03-30 17:03 ` Guido Van Hoecke
[not found] ` <2addcb35f67b455ba02295550e5b2ec7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-30 15:48 ` Eric S Fraga
2017-04-10 12:22 ` Matt Price
[not found] ` <013bacb6be3a49b1b8633fb7d2ad1ddc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-04-10 14:49 ` Eric S Fraga
2017-03-28 12:57 Matt Price
2017-03-28 13:23 ` Peter Neilson
2017-03-29 15:12 ` John Kitchin
2017-03-29 17:36 ` Peter Neilson
2017-03-30 1:33 ` John Hendy
2017-03-30 1:37 ` John Hendy
[not found] ` <e73a5e1e52db498f95cf60c7a983be27@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-29 15:21 ` Eric S Fraga
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).