Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Archive all marked entries with evil-mode

I recently switched to evil mode and cannot figure out how to archive all marked entries at once. The way I did it earlier, when I was in a list seeing the candidate entries for archiving I pressed * ...
0
votes
1answer
25 views

Remapping the `g` prefix key for all modes (Evil, org and outline minor mode), assigning a single function to `g`

The question is quite intricate. I am using doom-emacs and evil and I am customizing the keys. Usually, something like (define-key evil-normal-state-map "g" 'evil-paste-after) would work. ...
1
vote
1answer
30 views

Change C-z from Minimise to Toggle Evil Mode

I am a fairly new emacs user and would appreciate any help you could offer. I have recently installed the evil mode package onto my emacs. The package itself works perfectly, however, the default ...
0
votes
1answer
14 views

Can behavior of `W` be changed by modifying syntax entries?

I want dW and dB to not delete brackets in racket (all 3 kinds [, (, {). I'm looking at changing W and not w because w is still useful for changing parts of an identifier, e.g. I can easily change ...
1
vote
0answers
36 views

Skip over remaining errors in current file to next error in next file

tl;dr I am using :cn in Evil's Ex command line and would like to use :cnf as well, but it is not there, and I don't know what function to bind it to. Details As a former Vim user who is slowly ...
0
votes
1answer
21 views

Emacs keeps overwriting files in Haskell mode

I'm using emacs: GNU Emacs 26.3 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU ...
1
vote
0answers
11 views

Evil text objects on kebab-case behave differently on dw and cw

I would like my evil text objects to work on kebab-case words, so that dw or cw act on the "whole-kebab-word" and not just on "whole". Therefor I have put (modify-syntax-entry ?- "w" clojure-mode-...
0
votes
0answers
27 views

Replace normal state keymap in Evil with another

I don't like Evil collections or the Evil keybindings in the dired-mode. I would like to re-map only few keys in the normal state like j, k, and a few more keys with g prefix and I would like to keep ...
0
votes
1answer
17 views

Expiring search highlights in Evil

I'm using the evil-search module ((evil-select-search-module 'evil-search-module 'evil-search)). When I perform a search, the results remain highlighted until I call evil-ex-nohighlight. I'd prefer ...
2
votes
1answer
43 views

What is evil-mode's equivalent to vim insert-mode completion?

I'm making the move from Vim to Emacs + Evil-mode. I miss Vim's CTRL-X in insert mode to trigger completion of either words, tags, file paths, etc. I wonder if evil-mode has something similar? ...
0
votes
0answers
12 views

org-mode when evil visual active some shortcuts not working

org-next-visible-heading and org-previous-visible-heading are convenient functions with useful shortcuts "C-c n" and "C-c p." Unfortunately, these shortcuts don't work when visual/transient mode is ...
0
votes
0answers
20 views

Copy/Paste in terminal with Evil mode is confusing

In GUI emacs if I have two lines: 1.test 2.test And I did yy on the first line. when moving to the second line and doing p, the end result is: 1.test 2.test 1.test However in terminal mode, ...
0
votes
0answers
19 views

Why does evil-mode occasionally operates on whole lines?

Every now and then, evil-mode performs edits on entire lines. So pressing d in normal-mode - immediately deletes the current line, instead of waiting for the next key. I cant recall all actions which ...
0
votes
1answer
42 views

How do I set evil mode to use the normal state by default in Customize mode?

When I open the Easy Customization in Emacs, I want to be in normal mode instead of emacs mode. Is that possible?
0
votes
3answers
128 views

Evil mode send escape before Alt/Meta-command

In vim one can escape normal mode by pressing Alt or Meta then pretty much any key, e.g. Met-j to escape insert mode and move down a line. Holding alt before typing would send an <Esc> key ...
0
votes
1answer
73 views

Emacs + visual line numbers + folding + visual fill column mode

Relative line numbers for me it's a little bit painful topic. I'm using evil (spacemacs) and I want to jump between lines by in vim style like 10j, 4k etc. Is it possible to get line numbers behavior ...
0
votes
0answers
23 views

org agenda empty after org-mac-iCal import

After some struggle I got it to work for a day. I was able to see a combined agenda with todo's and calendar appointments correctly. The next day it stopped working, and the agenda file appears empty....
0
votes
1answer
72 views

Run current line or selection in shell then insert result in Emacs buffer (Acme workflow)

Given lines like these: pwd echo "Hello \ World" in a buffer, I would like to do the following: Put the cursor to the first line, then press C-` Select lines 3-4 then press C-` to send the line ...
0
votes
2answers
68 views

Spacemacs evil-mode : How to toggle off visual mode in interactive function call?

;; .spacemacs file (defun my/function (beg end) ;; To work with visual selection: (interactive "r") ;; Displays visual selection in message buffer: (message (buffer-substring-no-...
0
votes
0answers
29 views

Underline error

When booting emacs, I get this strange error: See https://github.com/emacs-evil/evil-collection/issues/60 for more details. Warning (initialization): An error occurred while loading ‘/Users/...
0
votes
1answer
27 views

Completing underscored words without making _ a word character

I would like to use evil-complete-previous (or whatever) to complete strings_such_as_this, which is by default not possible. It is possible after (modify-syntax-entry ?_ "w"), but this has the ...
0
votes
0answers
10 views

Bug: evil mode delete with a mouse click mispositions cursor location

when using evil mode, pressing 'd' in normal mode and then clicking a position deletes what ever is in between the current cursor location and the clicked position. The issue I noticed was that when ...
0
votes
0answers
66 views

Unsure on how to set Evil keybinds

In order to install evil and evil-collections I added this to my config: (use-package evil :ensure t :init (setq evil-want-keybinding nil) :config (evil-mode 1)) (use-package evil-...
0
votes
0answers
29 views

How to setup spelling for same words in different languages?

I'm becoming a Vim expat. One of the things I need on my setup is to be able to get spell checking for two languages: English and Portuguese. What's particular about the way I setup this in vim is ...
1
vote
0answers
45 views

Rebind a key in insert mode for a major mode?

I'm trying to rebind a key in insert mode for a major mode and I just can't seem to get it - I have in my .spacemacs (evil-define-key '(normal insert) rjsx-mode-map (kbd "C-d") 'rjsx-delete-...
1
vote
0answers
27 views

scroll-preserve-screen-position screws up evil-scroll-down (C-d) in evil

centered-cursor-mode has been extremely sluggish so I found that this setup achieves the same without the slowness: (setq scroll-preserve-screen-position t scroll-conservatively 0 maximum-...
0
votes
0answers
59 views

Wrong type argument: arrayp, nil in X mode

I'm getting a strange error on Emacs 27. Only in GUI mode (not in terminal mode), typing / to open the Evil search functionality results in the error wrong type argument: arrayp, nil being displayed ...
0
votes
0answers
15 views

How to replace all search-highlighted text resulting from a search with evil mode?

Once there is a search result, either from... Pressing / and entering the search term. Pressing * over a word. How can I replace the highlighted text after performing a search? Currently I ...
0
votes
1answer
50 views

Using evil and org-mode, as my file size grows, there is increasing delay in any command that changes text

There is only delay when changing text: navigation all works instantly, as normal. The delay has gotten to about one full second now, it's getting pretty bad. The file is around 15,000 lines long, ...
0
votes
1answer
96 views

Is there a way to write and kill a buffer in a single command in Spacemacs / Evil?

I am new to (Spac)Emacs with Evil, and I did quite some searching to find an answer to this question, so I hope this is a 'legitimate' question here. Is there a default single command to write a ...
0
votes
0answers
32 views

Smooth scrolling with Evil + C-d/C-u/C-f/C-b

There are several smooth scrolling plugins for vim, but with Emacs Evil mode I haven't found any way to get similar behavior. smooth-scrolling-mode doesn't seem to do anything.
0
votes
1answer
45 views

Why isn't the Evil global motion map used in Info mode?

I'm having a problem where it appears Emacs is not looking at keybindings set in my evil-motion-state-map. Below is my entire init.el. I start with an empty .emacs.d directory and only install evil. ...
1
vote
1answer
116 views

Evil key bindings with evil-define-key do opposite of what I want?

Below is the entirety of my Evil key bindings in init.el: (evil-define-key 'normal 'global (kbd "SPC") (make-sparse-keymap)) (evil-define-key 'normal 'global (kbd "SPC TAB") #'ivy-switch-buffer) (...
0
votes
0answers
86 views

What does evil-define-key do?

evil-define-key's docs say it "create[s] a STATE binding from KEY to DEF for KEYMAP." What is a "state"? What is a "state binding"? Emacs doesn't have "states" as far as I know? My current ...
3
votes
1answer
695 views

How do you type a space character in Spacemacs?

I was researching editors and I ended up stumbling upon Spacemacs and the fact that it uses the spacebar instead of traditional modifier keys. The documentation claims that this lowers the user's risk ...
2
votes
1answer
913 views

How to disable evil-mode everywhere?

I have recently installed emacs doom, and I tried to customise it with some custom keybindings. I have found that Evil is just not something I want. I can disable it on a per-buffer basis with M-x ...
1
vote
0answers
70 views

How can I use evil-mc in spacemacs?

This question is a semantically similar question but the OP's intent was more about which implementation of multiple cursors was "best". I echo one of the commenters of that question who asked "Can ...
0
votes
0answers
45 views

recover org file

I use emacs org mode + EVIL on MacOS. I had a small part of my file visually selected last night when I wrote :wq and hit y to the prompt. To my shock and horror this morning only the visually ...
0
votes
0answers
12 views

Add advising function to evil-ex

I want to add a display-line-number-mode advice to evil-ex. This should turn on line-numbers when I toggle evil-ex in a non line-numbered buffer. (defvar line-number-changed-call nil) (defun ...
0
votes
0answers
81 views

Why is scrolling line-by-line so much slower compared to vi-mode?

I was wondering if anyone has faced this issue before or is just me loosing my mind? It seems that C-n and C-p are so slow and sluggish compared to the j and k keys when using evil-mode. Is there any ...
0
votes
0answers
110 views

Record a keyboard macro in Evil Mode to a register with another keyboard macro inside it

In vim, one can type qw to start recording a macro to register w, then record the macro, then finish recording to w by pressing q again. It is then possible to record another macro by typing qe, ...
0
votes
0answers
73 views

profiler not showing some function calls?

I open a buffer and start a profiling session with profiler-start, selecting cpu. Then, repeatedly invoke evil-scroll-up and -down with C-u and C-d, perhaps 10 times each. The profiler-report output, ...
0
votes
1answer
141 views

evil star & visualstar without moving the cursor

Is it possible to do something similar to these vim commands with emacs-evil? They basically do the same thing as * and visualstar of vim (and evil) but they do not move the cursor to the next match. ...
1
vote
0answers
28 views

Evil commands reset margin

I'm using evil-mode and olivetti-mode, which adjusts the margins so that the text is centered in the window. My screen usually looks like this: Voluptatem tempore unde eveniet cumque ...
0
votes
1answer
64 views

Remap Company's select next and select previous keys, with evil-mode?

When company-mode pops up suggestions, I want to use C-n and C-p to select the next or the previous options, instead of M-n and M-p. Having found the general answer on this site, I was happy to try ...
1
vote
0answers
21 views

Add recent files to .viminfo

Is there a package or code snippet that can make Emacs add recent files to .viminfo? I want this to use with v. (Basically to open recent files using fzf) I’m using Spacemacs (so evil, too), if that ...
0
votes
0answers
35 views

Using `evil` and `evil-paredit` with visual selection and deletion

I have trouble making paredit work together with evil. I can either turn of evil-paredit and then don't have paredit work correctly as commands like x and dd will mess up the matching parenthesis. If ...
2
votes
1answer
134 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-...
1
vote
0answers
48 views

How to navigate SPC commands with Vim cursor?

I am very used to Vim keys BUT I love to use Emacs. That's why Spacemacs in Evil mode is perfect for me. There is one thing I still cannot figure out how to do. I don't know how to use h,j,k,l for ...
1
vote
0answers
29 views

Evil substitue with a counter

I was wondering if it is possible to run a substitue command in evil with a counter? For example, with query-replace-regexp you can use replace-count: (format "word-%d" (1+ replace-count)).

1
2 3 4 5
9