Questions tagged [evil]
Evil Mode is a Vim emulation layer for Emacs.
569 questions
0 votes
0 answers
3 views
How to achieve Evil Mode same mapping for different operations (conditional)
I'm trying to map C-j and C-k in Evil (normal) so that: if a Corfu completion popup is visible → move selection (next/previous), else if an eldoc-box frame is visible → scroll that eldoc box, ...
0 votes
1 answer
106 views
How to bind `C-a` followed by a parenthesis to a sequence of evil comands? [duplicate]
I would like to bind CTRL+A ( ( CTRL+A followed by a ( without having to hold the CTRL key) to a sequence of evil commands, lets say yi( (yank in parenthesis). 1. Attempts 1.1. C-a and C-) with ...
0 votes
1 answer
75 views
Expand a snippet with yasnippet from elisp with a named snippet?
I use evil (vim) mode and yassnippet. I want to define some snippets which "wrap" a region selected in visual mode. This means I cannot type the snippet name into the buffer before running ...
0 votes
1 answer
81 views
"evil-define-key" doesn't work if called from a function
Background: I wanted to bind c r in Evil normal mode to lsp-rename. Long story short, c isn't a "prefix key" but an operator, so doing that is a bit tricky, and involves going through evil-...
0 votes
0 answers
41 views
Set the Alt-key as leader key?
In many programs (as VSCode, Word or Excel, etc.), the Alt key has the same function as the <leader> key in evil. How/ is it possible to set the Alt (Meta) key as leader?
1 vote
0 answers
79 views
Keymap works but causes errors when doing `describe-function` for a function that is accessible through it
I did something and it had a weird effect. I found the source of my problem and removed the line that was causing the problem but I'm trying to understand why. Minimal Reproducer I use evil-mode and ...
0 votes
1 answer
63 views
Bind keys in company
I’d like to define keys in company with evil. Specifically, I’d like to have completion with the TAB key (because I am used to that from other applications). I have tried multiple variants of the ...
1 vote
2 answers
111 views
How to paste with indentation in emacs (evil) on pressing only p?
It seems a profane requirement though after years I'm still unable to paste text with the correct indentation. Has anybody a solution that doesn't require anymore steps than hitting p in visual mode ...