Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

How to make :q, in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs?

How can I make :q in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs? Coming from VI, the habit of closing with :q/:wq or ZZ/ZQ doesn't translate very well into Emacs. ...
user avatar
0 votes
1 answer
9 views

Create avy zap to char and up to char function

Good day, I like the zap to char and zap up to char functions from evil. Since sometimes you would like to delete a prolonged sentence, I use evil-delete with selecting the char by evil-avy-goto-char-...
user avatar
  • 163
0 votes
1 answer
18 views

How to map the space/insert whitespace key to a some key for the evil mode?

Good day, I am struggling with remapping the space key functionality. In particular, when I am using emacs with the evil mode I want to be able to use space when moving around in normal mode. I would ...
user avatar
  • 163
0 votes
0 answers
14 views

How do I view the entire call chain from a command?

I am facing weird issues from editing Kotlin code with LSP enabled with lsp-mode, in Spacemacs. Everytime I evil-yank and evil-mc-paste a line by yy followed by p, an empty line is pasted instead. The ...
user avatar
0 votes
0 answers
13 views

Evil cursor moves one position right after exiting append mode, how to let it stay?

Similarly to the question Cursor moves one position left after exiting insert mode? I would like to know the similar thing, but now for the append command. I want the cursor to stay when exiting both ...
user avatar
  • 163
0 votes
0 answers
19 views

Replicating Doom's Tab Key Behavior Using Evil in Org-Mode

When I'm editing an Org file using Doom Emacs in insert mode and my cursor is on the line of a heading, the Tab key seems to demote the heading while Shift-Tab seems to promote the heading. On the ...
user avatar
0 votes
0 answers
15 views

how to prevent `j` escaping the visual mode when the key is hold pressed?

In Spacemacs, I'm using jj as the escape key from the insert-mode. Here is the code in my .spacemacs (setq-default evil-escape-key-sequence "jj") (setq-default evil-escape-delay 0.2) ...
user avatar
  • 101
1 vote
1 answer
19 views

How to use backspace like functionality in evil-mode to join lines

I'm new to evil mode in emacs. I want to know how to backspace from a line and bring the cursor to the line above. For example: Mary had a little lamb, little lamb I want to bring the second ...
user avatar
  • 1,330
0 votes
0 answers
20 views

Evil: Edit mode on new Org mode heading

When using Evil in Org mode, Ctrl-Enter properly starts a new heading. However, it leaves the cursor in Normal mode. How could one configure Emacs to enter Insert mode when pressing Ctrl-Enter?
user avatar
0 votes
0 answers
26 views

(evil-normal-state) seems to have no effect as part of org-agenda-mode-hook

I'm attempting to move from Doom Emacs to vanilla Emacs. I've gotten quite used to the keybindings of Doom, so would like to replicate my most used ones in Emacs. I've used evil, evil collection, and ...
user avatar
0 votes
0 answers
62 views

Bug in emacs evil?

I'm running into some trouble with emacs evil. I get the error (wrong-number-of-arguments (3 . 4) 2) and when I run debug I get the following message: Debugger entered--Lisp error: (wrong-number-of-...
user avatar
0 votes
1 answer
30 views

Disable evil mode in specific mode doesn't work half the time

I am using doom which has evil everywhere enable. I tried the following two command which works previously in other mode, but now I have problem disable evil when I am in org agenda mode. here is what ...
user avatar
0 votes
1 answer
31 views

How can I replicate Spacemacs's evil bindings on the helm-find-files / helm switch to buffer modes?

I'm moving away from Spacemacs to vanilla Emacs + Evil and I liked the C-hjkl shortcuts that were available while navigating helm buffers (C-h / C-l moved up/down directories in helm find files, C-j ...
user avatar
  • 902
0 votes
0 answers
20 views

What's the most efficient way to replace one string at one location with a certain string at another location

Quite often I encounter the situation where I need to insert a string from a certain location to some other location. I wanted to know your tips to get this as done as efficient as possible. My ...
user avatar
  • 163
0 votes
1 answer
61 views

Evil-leader: Leader key working in special buffers like *Message*, *Backtrace*, etc

The leader key works most buffers and in other special buffers like Help but not in others. Is there a setting for having evil-leader work in all buffers? This is an example of my evil-leader ...
user avatar
  • 902
0 votes
1 answer
31 views

How to implement google/other search engine search of visually selected text in evil mode (counsel-search of selected text)

How can I define a command that searches the web for the evil visually selected text using google or some other search engine? counsel-search already does this if you insert a string, but how can I ...
user avatar
  • 163
0 votes
0 answers
35 views

How to have describe-key describe functions mapped to evil leader key

I am running evil in Emacs. I have set Space as evil-leader and assigned a key to it as follows: (evil-define-key 'normal my-intercept-mode-map (kbd "SPC") 'evil-send-leader) (evil-...
user avatar
0 votes
0 answers
21 views

Follow a file with row and column

How to make g f and/or find-file-at-point resolve file correctly in this format (gcc output) main.c:123:31: ....
user avatar
  • 139
1 vote
1 answer
62 views

How to go back within the ellipsis of a collapsed Org section?

I am using Emacs with evil-mode enabled. I would love to be able to move back using h when the cursor is exactly at the last character of a folded org file (as shown in the picture). However, when I ...
user avatar
  • 111
0 votes
1 answer
33 views

How to bind a multiple of a certain function to a key in evil-mode? (Ex. 5 lines down = `5j`)

In vim, if i want to move 5 lines down i press J given that my xnoremap J 5j. How do i reproduce this in emacs evil mode? The clue i have is that (define-key evil-normal-state-map "j" 'evil-...
user avatar
  • 113
0 votes
1 answer
29 views

Evil mode motion: between blocks of text

Block motion I would like to quickly swape through files and j k and / aren't cutting it anymore. Is there a command to move between blocks of text? For example: What I mean by block movement, ...
user avatar
  • 257
0 votes
1 answer
31 views

evil mode: delete word starting with backslash leaves the last character

I am using evil mode. In org-mode files, when I try to delete a word with dw and the word starts with a \, the last letter of the word is not deleted. For example, if my cursor is on the b of \begin{...
user avatar
0 votes
1 answer
81 views

evil-mode unmap TAB key from evil-jump-forward

I use evil-mode and evil-collection. The TAB key is bound/maped (?) to evil-jump-forward. I do not know which of the evil-packages or parts did this. I do not use this function. I need the TAB key for ...
user avatar
  • 509
0 votes
0 answers
27 views

Emacs Evil Mode permanently highlight all instances of text searched using the `/` key

In Emacs Evil Mode, when I search using the / key, it has the following behavior: It highlights all instances of the match as I am typing after pressing the / key. When I press return, it only ...
user avatar
1 vote
2 answers
49 views

How to ask for confirmation before killing any new modified buffer?

What's the best way to prompt for confirmation before killing any modified buffer, including new buffers created by evil-buffer-new, which creates a buffer without an associated filename. Modified ...
user avatar
  • 173
1 vote
1 answer
104 views

How to disable evil insert key in read only mode

I want to disable evil insert key such as a, i, o in read-only mode (keep navigation key such as j and k), my idea is to disable these keys in local buffer when enabling read-only mode and enable ...
user avatar
  • 233
0 votes
0 answers
32 views

Pasting from vim to a buffer of emacs

I am rocking quite an idiosyncratic workflow that combines both vim and emacs in a tmux session, on an ssh server. The problem is, if I try to copy (y) something from a (neo)vim buffer and paste in an ...
user avatar
1 vote
0 answers
36 views

org-mode has no syntax highlighting unless I start with evil

When I start emacs with evil-mode in my rc ((evil-mode 1)) I get syntax highlighting for .org files. However, when I do not, I do not get any syntax highlighting, even when trying M-x font-lock-mode a ...
user avatar
  • 13
0 votes
1 answer
32 views

evil: Make `%s/x/y/gc` use case insensitive matching but do case sensitive replaces

How do I make %s/x/y/gc use case insensitive matching but do case sensitive replaces? In emacs terms, I want case-fold-search but not case-replace.
user avatar
  • 620
0 votes
1 answer
34 views

Regexp replacement features

In the replacement part of :s in evil I can add commands like \l to lowercase the next char and \L to lowercase everything that follows, but I am unable to find documentation for that anywhere. I ...
user avatar
  • 224
0 votes
1 answer
32 views

How do I drop to Emacs mode for one command in Evil mode?

In vim, I can do C-O in insert mode and drop to normal mode for one command. Is there a way I can do this in evil, except dropping to Emacs mode for one command? e.g. C-Q C-x C-f where C-Q is in vim ...
user avatar
  • 13
0 votes
1 answer
53 views

evil/elpy: Auto-fold when opening a file

I am using Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian with elpy and evil-mode. When I open a py-file I want everything ...
user avatar
  • 509
0 votes
0 answers
19 views

How to dive into the code-folding topic [duplicate]

I am sorry for such a broad question but I have no other idea. I am using Emacs with evil-mode and elpy (for Python files). Not all keyboard shortcuts known from vim are working. When I ask the search ...
user avatar
  • 509
0 votes
0 answers
44 views

How can I go to the previous buffer, when that buffer is the Org Agenda?

I like to use RET in org-agenda to navigate to the files in which my TODO entries are stored. But getting back to the agenda is another matter. The usual methods don't seem to work. I usually press C-...
user avatar
  • 485
0 votes
0 answers
12 views

Substituting 'p' for 'N' when doing word searches for prior occurrences

In Doom emacs, when I press * asterisk to do a search for other instances of the word under my cursor, I use the n to skip to the next occurrence. The default vim key for the prior occurrence is N, ...
user avatar
2 votes
2 answers
84 views

Wrap all emacs key-bindings ... override command loop?

---+ 1: BRIEF: How can I wrap all or almost all key-bindings? Both those already defined, and those that will be defined in the future? E.g. can you point me to code that overrides the command loop ...
user avatar
1 vote
1 answer
94 views

Create a function that deletes word on point and replace with the yank register on Evil-emacs

I want to emulate this vim remap in evil-emacs (doom emacs). nnoremap <leader>mpp ciw<C-r>0 I want to change the word on point (I don't mind word or Word, just want the evil-change with ...
user avatar
0 votes
0 answers
111 views

How to override evil-org-mode keybindings

Here is the evil-org pachage I am using: https://github.com/Somelauw/evil-org-mode. All I want to is be able to demote/promote a subtree by pressing M-L/H. I have tried using the way the repo ...
user avatar
  • 123
0 votes
2 answers
42 views

C-i combination doesn't work with lowercase i [duplicate]

I've configured Doom emacs to run an interactive evil-ex command in visual mode, the reaconfiguration is as below: (defun evil-insert-into-lines () (interactive) (evil-ex "'<,'>norm I&...
user avatar
  • 21
1 vote
1 answer
45 views

How can I prevent pasting after org-copy-visible leaving cursor at end of text?

In evil-mode, if I use 3yy to copy three lines, then move somewhere else in my file and do P (evil-paste-before), the three lines are pasted before the line with the cursor, and the cursor is left at ...
user avatar
0 votes
1 answer
160 views

Override org-mode indentation function in evil insert mode

How can I override the org-mode indentation function of TAB in evil-insert-state-map? I'd like it to always fold and unfold the current or parent header, and switch the indentation functionality to ...
user avatar
0 votes
1 answer
39 views

Close only code folds using evil

How do I close all code folds (but not comments) with evil's code folding? For now I'm using evil-close-folds and evil-open-folds, but it closes all folds, including comments. I'm using spacemacs 0....
user avatar
  • 106
2 votes
1 answer
63 views

Vim help on Emacs using evil-mode?

It would be nice to have the help system present in Vim when using Emacs evil-mode (:help command). I searched online and could not find a way to do this since only the native Emacs C-h help menu is ...
user avatar
  • 123
0 votes
1 answer
59 views

Is it possible to replicate vim-unimpaired [p paste behaviour?

Evil-unimpaired (https://github.com/zmaas/evil-unimpaired/) tries to replicate vim-unimpaired, but the paste behaviour is just a dumbed down version of the original. The evil-unimpaired behaviour on [...
user avatar
0 votes
0 answers
48 views

How to use C-j C-k to move window in term mode using evil?

The bindings of C-j C-k to evil-window-down[up] work well every where apart form term mode. term mode rebinds these to C-w j C-w k - this is super annoying! How can i make term use the C-j/C-k ...
user avatar
  • 101
0 votes
1 answer
162 views

Doom emacs dired +ranger not obeying evil-mode

I am using doom emacs and in my init file I have (dired +ranger) The problem is when I open dired, I cannot press tab to select for example. I have first to toggle off evil-mode. If I do, I lose all ...
user avatar
  • 147
1 vote
2 answers
47 views

How do I make Evil's C-o work with Org's C-c C-o?

Org mode's org-open-at-point (C-c C-o) works great for internal links, e.g. Stuff to buy: - <<food>> food: - tomato - potato - banana - <<drinks>> drinks: - juice - ...
user avatar
  • 911
1 vote
2 answers
80 views

How to copy one register to another?

In vim :let @"=@* will copy the content of* register to the " register. How can it be done with evil?
user avatar
  • 151
0 votes
0 answers
34 views

How <dd> evil keymap works?

d seems to be bound to evil-delete which requires beg and end arguments. I suspect they are somehow obtained from d motion. Let's say I have defun my-delete-line (body). What should go in body to ...
user avatar
  • 151
1 vote
0 answers
64 views

Dvorak input mode wrong letters when typing fast, correct, when typing slow

I have dvorak keyboard layout set as input when I am in evil-input mode. However, when I type relatively fast when typing the I get thd. This is just an example, some other "typos" occur as ...
user avatar

1
2 3 4 5
10