Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

Filter by
Sorted by
Tagged with
3
votes
2answers
888 views

Evil and org-mode keybinding 't' conflict

In Spacemacs with evil and org-mode, the letter 't' is assigned to two functions: org-todo (don't need this because I use shift-arrow to cycle through todo states) evil-find-char-to (I need this) ...
3
votes
2answers
2k views

(Evil) “General” leader key (SPC) not working in some modes (dired, *Messages*)

I use Evil, and I'm using the General package to set my custom keybindings. I'm using SPC as a leader key. The trouble is, I find that SPC is not interpreted as my leader key in some modes, namely ...
3
votes
1answer
948 views

Why is my “repeat last action” (dot) operator is not working?

I'm a vim user moving to emacs evil. I just added this line to my .init.el file and it broke my dot functionality. (define-key evil-insert-state-map (kbd "TAB") 'evil-force-normal-state) Why? I'm ...
3
votes
1answer
435 views

evil-surround: change and delete not working with all surroundings

I'm using GNU Emacs 24.5.1 (GUI version) on Mac OS X 10.11.1 with Evil mode and installed evil-surround through the built-in package manager of Emacs. Now, I can add all surroundings, for example, ...
3
votes
2answers
1k 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
517 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 ...
3
votes
1answer
771 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 ...
3
votes
1answer
362 views

Evil - how to set up keychords for Web-mode only?

I have the following setup for using comments: (key-chord-define evil-normal-state-map "cc" 'comment-dwim-2) This works fine. I can type cc to comment it out or comment out. However, Web-mode ...
3
votes
1answer
787 views

How create keybindings for Evil command line?

For example, I have created a keybinding for Emacs mini-buffer, that will receive the [f9]-key as a confirmation (usually the RET-key). (define-key minibuffer-local-map (kbd "<f9>") 'exit-...
3
votes
1answer
512 views

Vim/Evil keybindings in Magit 2.1

I love vim keybindings. For older versions of Magit, I used this to allow j/k scrolling: (define-key magit-status-mode-map (kbd "k") #'previous-line) (define-key magit-status-mode-map (kbd "K") #'...
3
votes
1answer
417 views

How does comint-mode override beginning of line behavior? I want same functionality to eshell

My Emacs version is 24.5.1. Comint-mode protects the prompt by somehow defining the beginning of line to start directly after the prompt regex. This works for normal motion commands like move-...
3
votes
2answers
926 views

Pasting in evil-mode when there's an active selection copies the selection

Currently when I select a bit of text replacing another bit of text (eg "viwp" to paste over the current word) it copies the thing I just replaced into kill ring. So if I try to paste over another bit ...
3
votes
1answer
304 views

Evil Surround - Symbol's value as variable is void

When I execute cs<old-text-object><new-text-object> (i.e. any cs or ds action) I get the following error. Anyone know how to resolve this or at least suggestions on debugging it? evil-...
3
votes
1answer
206 views

When using `lisp-state`, how can we repeat an action like slurp, and bind a key to easily perform the repeat?

In vim, I frequently used the "." shortcut for repeating the last command. I found this extremely useful especially when working with clojure tools to do things like slurp-ing and barf-ing to refactor ...
3
votes
1answer
82 views

Evil keybindings in reftex-toc

I would like to bind j to reftex-toc-next and k to reftex-toc-previous whilst in a reftex-toc buffer. According to the documentation, the keymap active in *toc* buffers is reftex-toc-map. I'm using ...
3
votes
1answer
602 views

How can I temporarily disable Spacemacs key bindings to work with org mode?

I am trying to learn an orgmode tutorial in Spacemacs (terminal mode) and it seems tha the Spacemacs key bindings are getting in the way. How can I revert the Spacemacs bindings temporarily for that ...
3
votes
2answers
3k views

Neovim inside of Emacs as an alternative to Evil mode

I'm a current Neovim user who happens to be interested in Emacs. I like Org mode, as well as some other features of Emacs. However, every time I've tried to use evil mode, it's felt crippled. (The ...
3
votes
1answer
363 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 ...
3
votes
1answer
3k views

How to define normal-mode keychords in evil mode

A vim user trying to make the leap to emacs here. A roadblock I'm facing right now is a small convenience-remapping. These remaps aren't important, but my difficulty in making them makes me worry I'm ...
3
votes
1answer
941 views

how to make evil-leader local in org-src-mode?

I use evil-mode and evil-leader, and I have the <SPC>s keybinding to save the buffer. But when I edit a src code block in org-mode (with C-'), I want <SPC>s to run org-edit-src-save ...
3
votes
1answer
563 views

Insert mode: make C-a insert previously inserted text

In Vim, Ctrl-A can be used in Insert-mode to insert previously inserted text, much as the "dot" (.) command can be used in Normal-mode. For context and a demonstration, watch from ~2m25s - ...
3
votes
2answers
935 views

How can I disable “q” in normal state in evil for some modes?

I'm using Spacemacs. I noticed that in help-mode, q quits, which is exactly what I want. However, in certain other modes, customize-mode, for example, q is bound to evil-record-macro. (I set it to ...
3
votes
1answer
282 views

Map a Key to an Evil Operator and to Other Things?

For example, in in lisp-mode, I want to be able to use d as normal but also remap something like "dh" to something like "sp-splice-sexp-killing-backward". In vim you can remap keys like this without a ...
3
votes
1answer
691 views

How to add a key-chord escape in Evil for input in other languages?

How do I get key-chords to work with evil and alternate input-methods? I enabled Korean input by M-x set-input-method and chose korean-hangul, which I found from following the first few instructions ...
3
votes
2answers
191 views

Assign TAB in markdown mode

Running emacs 25.2.2, general, evil and markdown-mode installed from MELPA. The problem is when I hit TAB on a heading in a markdown file, it does not cycle visibility of content. C-h k TAB shows it ...
3
votes
1answer
216 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
1k views

Visual selection highlighting invisible (with Evil and color-theme)

In Emacs color-theme libraries, which items control the visual selection foreground and background? I'm in the process of giving Emacs a try after many years of Vim use. The vim emulator, Evil, is ...
3
votes
0answers
46 views

Letting evil >> increment org level

In evil mode, >> increments the indentation level of the current line. It does so at an org heading too, even though it would be more appropriate there if it would increase the org level (the ...
3
votes
0answers
54 views

xref gets confused by similar class names

If I use evil-jump-to-tag or xref-find-defintions on an inherited class module whose name is the same as a class in my current project, I am taken to the definition in the current project. I would ...
3
votes
0answers
142 views

Evil: How do I see the partial command I've been typing?

Suppose I am in command mode, and I am in the process of typing 3dd to delete three lines. How can I make evil mode show the (partial) command I have typed so far? In other words, is there an evil ...
3
votes
1answer
174 views

change evil operators to be non-greedy

I notice that some of the evil around operators are greedy. As in they grab space around the surrounding delimiters. One such operator is the a". Assuming that my cursor is | when I use va" the ...
3
votes
0answers
601 views

How to start a new line

I use Emacs with Evil mode, and I'm starting new line with key o. But I prefer to stay in Evil's normal mode, without going into Evil's insert mode, when starting a new line. When reading the called ...
3
votes
0answers
695 views

How do I make evil-search-forward / evil-search-backward use fuzzy search?

I'd like to search in buffer with the same fuzzy style that turns the search string into a regexp that splits characters and joins them with .*, like in Helm command search. Is there a way to do this ...
3
votes
3answers
1k views

Evil mode: How to run evil-indent on the text I've just pasted

When I copy line three below in evil-mode function foo() { } var bar; #copy and paste it at line two, I get function foo() { var bar; #paste } instead of the correctly indented function foo() { ...
3
votes
0answers
475 views

Turning relative numbering on (with linum-relative) in Spacemacs only when in normal mode

In Vim I have relative numbering which is turned on most of the time but it's turned off when in insert mode or when the window losses focus (both when changing to another Vim window or when changing ...
3
votes
0answers
617 views

disabling evil auto copying of selection to clipboard on frame focus

I'm seeing interesting behavior when I try to copy text between other applications and emacs on arch linux, when using evil-mode. Whenever I have a region selected in emacs, and then click to focus ...
3
votes
0answers
808 views

How to disable the map from esc to meta?

I installed the oh-my-emacs configuration and try to use emacs in the terminal. oh-my-emacs configuration enables evil-mode in default, and my problem is that, I found esc is mapped to meta, while ...
2
votes
2answers
569 views

Conditional key binding: Evil vs Slime conflict for “M-.”

Slime (and elisp-slime-nav) uses M-. to navigate to the symbol at point, and M-, to pop back to previous marks. I like this. Evil uses . to repeat the previous editing command, C-. to replace a just ...
2
votes
2answers
1k views

Disable evil-mode in magit

I am newbie here, need some help. After upgrade magit to v2.1.0 this morning, i found some short keys are different from the early version. What bothers me is this: when I use some short key(for ...
2
votes
2answers
5k views

How can I use multiple cursors in evil/spacemacs

There are multiple multiple-cursors implementations for emacs. I have the impression that extra work has been required to make them work well in evil and spacemacs in particular. I imagine the ...
2
votes
2answers
1k 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 ...
2
votes
1answer
925 views

How do I change the mode indicators for evil-mode in the spaceline mode line package?

The mode line shows <N> or <I> or <V> and I would like it to show NORMAL, INSERT, VISUAL, etc. I'm new to Emacs so my Elisp skills are non-existent.
2
votes
1answer
164 views

Get rid of evil's state info such as ` — INSERT — ` in the echo area

How can I get rid of the state information of evil in the echo area? I've already displayed it in the status bar and there is no need to occupy the echo area.
2
votes
1answer
1k 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....
2
votes
1answer
664 views

Move evil tag to beginning of mode line

This question is pretty self explanatory. I'd like to move evil-mode-line-tag to the beginning of mode-line-format. However, when I try my instinctive solution: (setq-default mode-line-format (cons ...
2
votes
1answer
733 views

Assign evil-mode keys dependent on major-mode

I would like to assign evil-mode normal-state key bindings dependent on what major mode I am currently working in. E.g. I am using org-mode and I want a set of keys and if I use AucTeX I want a ...
2
votes
2answers
319 views

Evil-Mode: Problem “interactive” buffers with letters defined, like q to close popups

In Evil-Mode, when there is an buffer with alphabet keys bound, such as a help buffer (binding q) or a magit-popup buffer (strangely not a magit status buffer), I need to enter into insert mode in ...
2
votes
1answer
102 views

Keep text selection after indenting with evil

I'm using emacs with evil key-bindings and I like to know, after getting some text into visual mode, how do you make sure that after hitting >> for indenting the text, the selection is kept, ...
2
votes
1answer
883 views

How can I get RET to follow org-mode links when using evil-mode?

In org-mode, the link-following behaviour of RET, that should be present when org-return-follows-link is set, doesn't work in evil-mode. MWE from emacs -q: Load an org buffer containing a link. Note ...
2
votes
1answer
494 views

Unwanted indentation in org + evil

From an org heading, pressing evil o will open a new line that's indented according to the heading (org level + 1 spaces). Can this behaviour be turned off?

1 2
3
4 5
10