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
0
votes
1 answer

Emacs Evil smooth-scroll and next match jumps

I installed smooth-scroll which works nice with isearch jumps, but it doesn't work with jumps in Evil (the n and Shift-n). How can I make the n and Shift-n jumps in Emacs Evil to be smooth?
Michael
  • 1,834
  • 2
  • 20
  • 33
0
votes
1 answer

`C-[` does not escape from insert mode in evil local mode

I just started to use vim in my emacs. While most of the docs/wikis suggest turn on evil mode globally, I, being a emacs user at the first beginning, really prefer to keep evil mode local. That means, when I need model editing I will turn on the…
Fanpeng
  • 332
  • 1
  • 9
0
votes
1 answer

Disable highlight-line when in visual mode (evil mode)

I'm new with emacs and I'd like to know how can we disable the highlight line mode (global-hl-line-mode) when we are in the VISUAL mode of Evil Mode. I find it really confusing when we start selecting a block with the hl-line activated, even if…
Walid Ber
  • 81
  • 1
  • 1
  • 4
0
votes
1 answer

emacs, narrow-to-defun, hs-show-block

I have defined the following: (defun narrow-into [] (narrow-to-defun) (hs-show-block)) (define-key evil-normal-state-map (kbd "zi") 'narrow-into) My Goal The goal is that I can open up a file, hit "zi", and it will (1) narrow to the current…
eav db
  • 595
  • 3
  • 13
0
votes
0 answers

Setting up Emacs for Haskell development fights with Evil-mode

I've recently switched from vim to emacs using evil mode and while coding with clojure has been a pleasure, I've found out that the haskell environment doesn't cope well with evil-mode... in particular, the "o", "O" and "RET" (while in insert mode)…
Dr_Benway
  • 61
  • 5
0
votes
1 answer

How to prevent `magit-visit-thing` to open an `evil-mode` buffer

evil-mode has evil-emacs-state-modes var, which defines modes to open in emacs mode. I have magit-diff-mode listed in that var (in fact, it is a default). Running magit-diff opens correctly in emacs mode. However, if I a run magit-status (opens in…
user3156459
  • 1,123
  • 2
  • 9
  • 17
0
votes
1 answer

Evil mode hook with specific major mode?

Is it possible to hook evil-insert-enter-state and other states only within org-mode with the org-toggle-latex-fragment? p.s. finally the suggestions work. I currently have the following pieces that make the org mode automatically render the content…
darwinsenior
  • 486
  • 1
  • 5
  • 13
0
votes
2 answers

How to enable evil-mc with helm-ag-edit and helm-swoop-edit?

I want to use multiple cursors in buffer of helm-ag-edit and helm-swoop-edit. But It couldn't auto enable evil-mc-mode. I added: (dolist (buffer '("*helm-ag-edit*" "*Helm Swoop Edit*")) (when (get-buffer buffer) (with-current-buffer buffer …
honmaple
  • 889
  • 1
  • 8
  • 12
0
votes
1 answer

Define anonymous function for binding to evil-leader-key

What is the syntax necessary to make the binding to key t work in the below? (evil-leader/set-key "f" 'find-file "o" 'other-window "b" 'switch-to-buffer "k" 'kill-buffer "1" 'delete-other-windows "2" 'split-window-below "3"…
johnbakers
  • 24,158
  • 24
  • 130
  • 258
0
votes
2 answers

How to overwrite a key binding only on eshell?

I use evil-mode on emacs, and recently I started using eshell, I really like how I can leave insert mode and move on the eshell buffer to copy content or other goodies, but when entering insert mode again it does it in the cursor current position,…
zzantares
  • 341
  • 3
  • 12
0
votes
1 answer

Moving point to the end of the last line without reorienting the buffer

Is it possible to move point to the end of a buffer without reorienting the text around that line? This seems to be the default behaviour of goto-char. My goal is to correct a minor annoyance which places the cursor at the second last line when I…
curious
  • 133
  • 7
0
votes
1 answer

Evil in emacs: cannot remap "s": buffer is read-only

I'm trying to remap some evil keys to navigate using htns. htn works fine, but s always gives me the "buffer is read-only" error. I'm assuming I need to remap save buffer, but I'm getting lost in the key rebinding api. My .emacs looks…
El Marcel
  • 1,767
  • 1
  • 10
  • 11
0
votes
1 answer

emacs evil-mode: turn off line numbers on particular modes

I am using emacs+evil+ESS. I have the following in my .emacs in order to turn on line numbers in all modes except iESS mode. However, the line numbers in iESS is not turned off. I sometimes have hundred thousand lines in iESS buffer, and it is not…
biocyberman
  • 5,675
  • 8
  • 38
  • 50
0
votes
1 answer

What is the name of function that is called when you use '%' in Emacs Evil normal mode?

I'm looking to call this function programmatically, but can't figure out what function is actually called that moves point to matching bracket.
David
  • 606
  • 6
  • 11
0
votes
0 answers

How do I rebind 'ESC' to "`" in emacs evil mode?

Sorry for what is probably an easy question for an experienced emacs user, I'm having a really hard time figuring out how to switch the default bindings for the ESC and "`" keys. This is what I have so far: (defun set-my-key-bindings () ;; This…
Short
  • 7,767
  • 2
  • 25
  • 33