Questions tagged [evil-mode]

Evil (Extensible Vi Layer for Emacs) is a vim emulator for emacs

Evil is a reasonably full-featured and extensible vim emulator for emacs. It may be considered the successor to both Vim Mode and Viper/Vimpulse

Evil home page

183 questions
3
votes
1 answer

Emacs show-paren-mode + Evil

I'm using Cocoa Emacs24+Evil on OSX. I've enabled the show-paren-mode. However in the normal state, when the cursor is on the closing paren, the paren pair is not highlighted. Only when the cursor is on the opening paren or in the position after the…
Opt
  • 4,774
  • 3
  • 28
  • 28
3
votes
2 answers

How do I map M-x to "`" key in emacs 24 (Mac OS X Lion)

I've downloaded Emacs 24 pretest for Mac OS X and using Prelude + evil kit. I am coming from vim background and find that M-x is too slow and painful to use. Is there any way to map M-x key to ` key that is near the ESC key? Thanks.
Think Pl
  • 131
  • 1
  • 2
3
votes
2 answers

how to make EMACS evil-mode display line numbers

I work with evil-mode under Emacs so I encounter this issue that Emacs display line numbers for some mode but not for other mode, when I try to toggle linenumber-mode explicitly it tells me this mode has been disabled. is there a way to make…
zinking
  • 5,561
  • 5
  • 49
  • 81
2
votes
0 answers

How can I invoke `:vsp` in an Emacs Lisp script?

Imagine I have an Emacs Lisp script which I execute using M-x eval-buffer. In this script, I want to call :vsp (vertical split) several times. How can I do it programmatically? C-h k takes me to the evil-ex command. However, I cannot find there…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
2
votes
0 answers

Allow to run a string as the corresponding vim commands in elisp

This list of call-interactively actually represents a very simple Vim macro: vk=o (define-key evil-normal-state-map (kbd "SPC dg") (lambda () (interactive) (call-interactively 'evil-visual-char) (call-interactively…
Mikechaos
  • 359
  • 4
  • 18
2
votes
1 answer

How to rebind C-r (undo-tree-redo) in Emacs with evil-mode?

So I was wondering, how would I remap C-r when I am using evil-mode? When I run C-h k C-r, I am told that C-r is bound in the undo-tree-map mapping. So, I have tried to unbind it like so: (define-key undo-tree-map (kbd "C-r") nil) However, when I…
Slackware
  • 960
  • 1
  • 13
  • 29
2
votes
2 answers

search text in Emacs evil mode

C-s works fine in searching text in Emacs evil mode, but if I want to use vim shortcuts for text searching, / works for the first matching in searching forward, but type / again does not go to the next matching position as in vim does. So my…
r ne
  • 621
  • 7
  • 19
2
votes
1 answer

Emacs: Disable a specific minor mode for all Lisp buffers

I want to avoid conflicts between evil-mode and paredit by disabling the former for the buffers in which the latter is active. The following code didn't work: (add-hook 'emacs-lisp-mode-hook 'turn-off-evil-mode) (add-hook 'lisp-mode-hook…
krn
  • 6,715
  • 14
  • 59
  • 82
2
votes
1 answer

Emacs evil-leader and evil-nerd-commenter conflict

I'm using evil-leader and evil-nerd-commenter, but I don't like the nerd commenter way of using ,, to comment lines (I use , to search backward when using t or f), so I changed it to \\ as suggested in its page. But if I install evil-leader, it…
Michael
  • 1,834
  • 2
  • 20
  • 33
2
votes
3 answers

how to move the cursor to the middle of the line in evil of emacs?

The following link gives an answer in vim, https://superuser.com/questions/216411/go-to-middle-of-line-in-vim using the following script map gm :call cursor(0, virtcol('$')/2) but how to do that in emacs? put it inside .emacs? and how ?
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93
2
votes
2 answers

Unbinding Evil's C-w mappings?

I'm trying out Emacs with Evil mode. I'd like to use C-w as a prefix for my own window manipulation shortcuts that are defined globally, not just for buffers with Evil mode. I have the following code in my init.el (define-prefix-command…
haesken
  • 88
  • 1
  • 7
2
votes
1 answer

Using elisp to move the cursor in the evil minibuffer

I am trying to create a function in elisp to open the evil ex buffer with prefilled text and place the cursor somewhere in the middle. However, all I've been able to do so far is open the buffer with prefilled text and the cursor at the end with…
user1539179
  • 1,835
  • 2
  • 16
  • 28
2
votes
2 answers

Emacs in evil-mode and regular expressions

Using Emacs in evil-mode, I'm getting problems with regular expressions that include \_, like e.g. /TAG1\_.\{-}TAG2 /TAG1\_s*TAG2 For example, the first regular expressión is used in Vim to find any block of text between TAG1 and TAG2, including…
summer
  • 121
  • 1
  • 4
2
votes
2 answers

key chords in isearch

I really love key-chord.el. It's become an integral part of my workflow, but sometimes I wish I could have them in the minibuffer (for things like evil-search). Specifically, I'd like jj to exit out of evil-search and move down a line. Is this…
PythonNut
  • 6,182
  • 1
  • 25
  • 41
2
votes
4 answers

Disabling a package in emacs term-mode

I have a package (evil) that isn't playing nice with ansi-term. I am trying to have emacs disable evil-mode when term-mode is active. I am using the following command to try to do so (add-hook 'term-mode-hook (lambda() (evil-mode -1)) ) However,…
user1539179
  • 1,835
  • 2
  • 16
  • 28