Evil Emacs Mode: Suggestions and Other Issues

I love vim. It gives me the feeling that I am reaching the text directly and incline it to my will.

That said. I also like Clojure, and Clojurescript, and Lisp, and Org-mode. I really, really tried to like Emacs, in Silent mode, and I gave it 6-8 weeks before I was disappointed.

I am thinking about trying again because I saw really great examples of literate programming using ractive.js and org-mode. But this time I want to plan ahead. I have a short list of things that I want to know how to do before I just blame it willy-nilly (if, in fact, I'm brave enough to continue it):

  • Motion sentences and paragraphs. I am writing code, but I am writing much simpler text. When I edit, I usually change / delete at the end of a sentence or two. I couldn’t make it work in malicious mode, and I even had a flag that seemed to suggest that it was possible, but I couldn’t make it work. Evil showed this movement? If not, how would I talk about this movement?
  • Leaderboards and meta-performance maps. I really did not get amazing results in vim until I found out about leader cards and cards for creating maps. Nothing crazy - I just created a map to open my .vimrc, and created some abbreviations in the .vim files, so I had a permanent map for a few seconds after realizing that I needed it. What could be the equivalent technique in emacs? How can I make cards in vim-ish (i.e., minimal record)? Is this for me or for me?
  • Buffer commands. I did not quite understand the logic of having 2-4 chords to change the file you were working on. I want to learn - it’s not like I really used vim buffers, I just did not open the files inefficiently, but it would be nice to find a tutorial that did not convince me to type a vim path, m will be in the way of evil.

The editors' wars are stupid, emacs is a lot for this, but I like the home bar! Is there any way to get the power of the emacs operating system by preserving this decent editor that I recognized?

+4
source share
4 answers

?

: :

, evil-forward-sentence, , , vim (. ). Emacs forward-sentence, . .

forward-sentence sentence-end (. M-x ielm), . , . , :

    (setq sentence-end "\\. ") ;;point followed by a space

- . ):

    (define-key evil-normal-state-map ")" 'forward-sentence)
+6

, , ?

WRT Emacs, , vi-mimicry, . , Emacs , .

Emacs - . M-x kill-sentence RET. , ? , : -)

+1

, , Evil emacs , vim's. vim, sentence-end-double-space nil:

(setf sentence-end-double-space nil)

Emacs :

, sentence-end-double-space nil, . : , , , . .

0

, , :

f.

f.

This is not as elegant as the Vim proposal sentence, but it does the trick. You can also use the "t" commands if you do not want the cursor to end exactly at a complete stop. Like other motion commands, it can be combined with other keystrokes to delete or anything you want to do.

0
source

All Articles