Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

6
votes
1answer
508 views

Difference between `evil-search-forward` and `evil-ex-search-forward`

It's in the title: What's the difference between evil-search-forward and evil-ex-search-forward? When would I want to use one instead of the other? evil-search-forward Search forward for user-...
4
votes
1answer
176 views

Make delete key also delete region in evil insert mode

In evil insert state, I can mark a region in the buffer using the mouse. If I now press the Delete key (bound to the delete-char command) it deletes the character at the current cursor position and ...
2
votes
1answer
63 views

Error when folder of an open buffer is deleted outside emacs

I get this error when I am trying to swtch buffer and a folder of an open buffer is deleted outside emacs: Error in post-command-hook (evil-mode-check-buffers): (file-error "Setting current directory"...
1
vote
2answers
86 views

How can I redefine a key that is currently used as the start of a key sequence?

I want to redefine C-w to run one of my commands. evil has already defined a number of key sequences that start with C-w to run its commands. So my command does not run, Emacs just waits for me to ...
0
votes
1answer
447 views

evil-vimish-fold based on syntax

evil-vimish-fold is really great for custom folds. However it's not clear to me how you would accomplish syntax based folds. Does evil-vimish-fold work with JavaScript mode? Can I set evil-vimish-...
1
vote
2answers
137 views

Evil equivalent of imap

How do I make ae in evil insert mode produce æ? This would be the equivalent of inoremap ae æ in vim. (I tried (define-key evil-insert-state-map (kbd "ae") (kbd "\C-kae")), but after this typing a (...
5
votes
1answer
451 views

evil mode: switch back to normal mode automatically after inaction

I was wondering if anyone has ever looked at a way to switch back to normal mode automatically after inaction? In Vim, there are several methods to do that, such as: http://vim.wikia.com/wiki/...
5
votes
1answer
218 views

Pasting text doesn't work properly in evil-/web-mode

In certain situations Emacs doesn't properly paste text. Apparently this only happens if the current buffer isn't saved and both web-mode and evil-mode are loaded. I was able to reproduce this ...
3
votes
1answer
563 views

Pasting without auto-indent

Whenever I paste something in a source code buffer it is automatically re-indented. This is great sometimes, if I'm pasting a complete block of code or a single self contained line for example, but it'...
3
votes
1answer
290 views

Integrate cua-mode with evil-insert-state

I'm starting to think that using the regular C-x C-c C-v keys for kill-ring operations make sense, as they're used that way in every other program I use regularly. (And I'm starting to develop ...
1
vote
1answer
76 views

How to make tab key shift test after cursor in evil mode insert state

To be honest, I'm very novice in Emacs, so is it possible somehow to bind TAB key in insert state of evil mode to shift text after the cursor right on current indentation amount of spaces at each key ...
1
vote
1answer
240 views

How to use input methods in minibuffer?

I am writing some xelatex code with both English and Farsi (right to left direction) characters in it. Also I am using Emacs' input method (changing with key Ctrl + \) for changing between English and ...
0
votes
1answer
259 views

How to revert evil insert state binding of the escape key?

I have remapped the evil-normal-state command bound to ESC in Evil Insert mode to C-o since the escape key is more difficult to reach on my keyboard than typing C-o. Now I want to use the original ...
1
vote
1answer
53 views

Vertigo doesn't work properly with evil motions

I'm using vertigo with evil in the following way: (evil-define-motion vertigo-j (count) "Evil vertigo motion. Count has no effect." (vertigo--jump #'evil-next-line "Jump down: ")) ...and I map ...
2
votes
1answer
502 views

How to list keybinding for a particular keymap (evil-mode)?

I am trying out evil-mode, and it seems promising. Now I would like to get an overview of the keybindings introduced in evil-normal-state-map. If I type C-h v RET evil-normal-state-map I get: Value: (...
2
votes
1answer
494 views

Cant bind <SPC> in evil mode?

for some reason i cant bind space in evil mode and get an error. all other keys work well. any clue? this is the bind that dosent seem to work (define-key evil-normal-state-map "<SPC>" 'hydra-...
2
votes
1answer
186 views

How to yank text to search command (after “/”) in evil-mode?

Is it there any way to yank in the search command (after press "/") in evil-mode?
1
vote
0answers
41 views

How can I tell evil which language mode to use for indentation?

evil-indent does not work in ein, it simply collapses all indentations of the selected region. Can I somehow tell Evil that it is dealing with Python code?
0
votes
2answers
185 views

Change dd command in evil mode to not write to clipboard

I would like to use normal modes commands like d c x etc without the content being copied to clipboard. I want to make emacs so that only y command will write anything to the clipboard. Other ...
2
votes
2answers
692 views

Tab always indent even in evil normal mode?

For code editing, and maybe other things too (but not for modes where the tab key has a special behaviour, notably org-mode), I want the tab key to indent, even when in evil normal (or motion) state. ...
2
votes
1answer
373 views

Cannot remap key in evil-normal-state-map

I'm trying (define-key evil-normal-state-map (kbd "o") nil) (define-key evil-normal-state-map (kbd "o") 'evil-end-of-line) but the key remains bound to evil-open-below. FWIW I'm using spacemacs on ...
0
votes
2answers
100 views

How can I automatically confirm the default value to a function call?

Apologies if this is poorly described, my emacs vocabulary is pretty limited. I've set the following in my config: (define-key evil-normal-state-map (kbd "C-=") 'cider-find-var)) cider-find-var ...
2
votes
2answers
646 views

automatically use evil for ibuffer and dired

I am switching from vim to emacs and have evil installed. Mostly evil runs perfectly, but after starting emacs the first time and running ibuffer or dired I have to turn on evil-mode (C-z). This is ...
6
votes
1answer
368 views

Evil mode - How to go into Insert mode after Org-capture with %? cursor placement

After creating an org-capture with the %? to place the cursor, the cursor will be in command mode. Is there a variable for putting it into insert mode or does org-capture elisp code need to be ...
0
votes
1answer
701 views

Changing mode-line face when evil state changes

I'm trying to change the mode-line face box attribute to be the same color as the evil emacs state face, obviously updating it each time the mode changes. I've seen some things about using a post-...
1
vote
0answers
99 views

`M-f` doesn't move to next line in evil-mode

This happens on the Emacs splash page primarily. I can move back to the end of the previous line with M-b but cannot move onto the beginning of the next with M-f. As an experiment, I'm going through ...
2
votes
1answer
151 views

Generate dynamic keybindings depending on keyboard layout

This is a bit of an esoteric request so I will try to phrase it clearly. I am currently beginning to learn colemak and doing so through a series of transitional layouts that go by the group name of ...
3
votes
1answer
393 views

How to jump up or down to first non-whitespace character in same column

I use evil-mode with Emacs and would like to accomplish this via evil-mode, but would be fine with doing it in an Emacs centric way too. The subject line explains it well, but here is a post in which ...
4
votes
2answers
2k views

How to quit evil mode?

My vim-using co-worker came by, and since he wanted to do something with files on my PC, I installed evil-mode to allow him to do this more efficiently (vim user trying to accomplish anything in emacs ...
4
votes
2answers
102 views

Bind several minor modes together

This has been driving me crazy, I can't get this to work. I want to link the on-off status of a handful of minor modes, in particular evil-mode, evil-quickscope-mode, hl-paren-mode, and a few others. ...
0
votes
2answers
226 views

Use default keybindings in Evil in non-text-editing buffers?

I am using Evil-mode which creates a vi-layer in Emacs. This means you have different modes (e.g., NORMAL; INSERT; VISUAL). Unfortunately this also happens at times when I do not want to be in NORMAL ...
1
vote
1answer
797 views

Bind Ex-mode command in Evil

I am trying to bind CTRL-B to perform the Evil command :buffers. The reason I am doing this is because I want to scroll through the open buffers with j and k and then press <RET> to make the ...
1
vote
1answer
341 views

Powerline not rendering after adding another face

I am using this powerline and have trouble modifying the theme. This is my config for powerline: ;; My theme and setting for powerline ;; include original powerline (require 'powerline) ;; theme ;; ...
0
votes
1answer
152 views

Changing evil-forward-word behavior by modifying a syntax table

Currently in Emacs Lisp files I have the following behavior when I run evil-forward-word-begin |some-lisp-function some|-lisp-function some-|lisp-function some-lisp|-function some-lisp-|function In ...
0
votes
1answer
46 views

Problem about `evil-visual-state` and advising `read-key-sequence` with `call-process`

In Evil mode, after I enter visual-state, I can use f to expand the selection by jumping to a character. Now if I've pressed f after entering visual-state, Emacs asks me to input a character to jump ...
1
vote
1answer
755 views

What's a good setup for integrating magit with evil mode?

I'm trying to set up magit to work nicely with evil mode. Ideally I'd be able to open the magit-status-mode buffer in normal mode and be able to stage/commit from that buffer with vim-like keybindings....
1
vote
0answers
526 views

single escape to quit helm in terminal

This blog post on migrating from vim to evil-mode in emacs gives code to make a single ESC quit/cancel helm instead of 3. It worked on Emacs.app (OS X) but doesn't work from Terminal.app (both emacs ...
2
votes
1answer
276 views

Defining advice for cider-interactive-eval for evil compatibility

Cider offers very useful debugger for clojure code. Once you enter the debugger, you can step through it with keys like (n)ext, (o)ut, etc., like so. Using evil, the problem is that if I enter this ...
1
vote
1answer
267 views

Programmatically execute evil-ex move command

I'd like to execute an evil-ex command from another command. Specifically, I'd like to do :'<,'>move'>+1 but when I do, it doesn't quite do the right thing. Instead of moving the text down, ...
2
votes
1answer
518 views

M-. and M-, in evil-mode

In normal mode I can't jump to definition with ternjs or cider modes. I have to go to insert then hit M-. Is that the evil way? Should I have M-. bound to another function that checks what mode you ...
0
votes
0answers
440 views

colemak user :: spacemacs <caps lock> key-chord f d [hit f then d really fast]

Following https://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x I remapped caps lock (51) to esc (53). I think it was actually esc + : (: is shift-; on qwerty but shift-p on ...
7
votes
1answer
1k views

How can I translate my .vimrc into evil-mode

I have heard of the power of Emacs, but I have a ton more experience with vim and an extensive amount of shortcuts in my .vimrc file. I would like to transfer these mappings over to Emacs evil-mode. ...
5
votes
2answers
509 views

Map keys in all modes?

Is there a way to bind keys across all modes? For example I have one binding: (define-key evil-normal-state-map (kbd "gt") 'persp-next) This works fine in some modes, but not in others, like org-...
1
vote
1answer
113 views

Perp-mode - open new blank tab without prompts?

I'm trying to replicate vims :tabnew functionality, which just creates a new empty tab (perspective). All the commands I've looked at prompts for confirmations and names etc. They clone the current ...
3
votes
1answer
1k views

Remove key-mapping from org-mode

I'm transitioning from VIM (using GNU Emacs 24.5.1). I want to move between "windows" using familiar keys i.e. (global-set-key (kbd "C-k") 'windmove-up) (global-set-key (kbd "C-j") 'windmove-down) (...
2
votes
1answer
266 views

How to rebind evil key mappings for delete and friends?

I am looking to rebind some evil mode keys used in navigation and text selection. For example, I am able to successfully map the following evil-mode keys to the following functions: (define-key evil-...
0
votes
1answer
153 views

evil & org-time-stamp-inactive at end of line in normal mode

I use evil (via spacemacs) and I want to insert a time stamp at the end of the current line in org-mode. Alas the end-of-line in evil normal mode is not the same as in vanilla emacs, so that pressing $...
4
votes
2answers
766 views

Always enter emacs mode with ansi-term

I have a freshly installed spacemacs installation and I want to make it so that I ansi-term is in emacs mode. However, I try to add (add-to-list 'evil-emacs-state-modes 'term-mode) to my .spacemacs ...
3
votes
3answers
1k views

Using 'jk' to exit insert mode with key-chord or anything else

I'm trying to transfer over from vim to Emacs. I'm using evil to emulate vim modal editing. In vim, I've remapped jk to get me out of insert mode and back into normal mode using inoremap jk <esc>...
0
votes
1answer
78 views

The function will not pass anything to a SQL process, when called. There is no error

I liked the interactivity of Clojure/Lisp, where you can see the result in the REPL. I tried to implement the same behaviour for SQL-mode. The idea is that when I do C-x C-e on the SQL-statemnt, I see ...