Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
2answers
16 views

How to change to evil-insert mode when there is no hook?

I'm trying to change evil-org to evil-insert-state when I add a note to my org files. I've tried to look it up, but can't figure it out. I've configured org-mode to always query me for a note after ...
0
votes
1answer
21 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 ...
0
votes
0answers
18 views

How do I override a keybinding defined by evil-mode?

I've searched for this before but I've only seen questions like the below: https://stackoverflow.com/questions/683425/globally-override-key-binding-in-emacs How to override major mode bindings I don'...
0
votes
0answers
19 views

shortcut to view TODO status by keyword in org mode

Background: In org mode C-c / T <keyword> generates a view for that keyword. For example, if I want to view all TODOs with the status of NEXT, the key sequence is C-c / T NEXT RET I have ...
0
votes
1answer
23 views

Making Emacs show the last part of bash-command output

I use the Evil mode inside Emacs for doing a lot of my work. If I need to run a shell-command and see its output all I need to do is type in normal mode :!<bash command>. The window splits into ...
0
votes
0answers
12 views

Apply vim macro to files in helm-ag result?

I am using spacemacs (using evil mode) and want to apply a vim macro (keyboard defined or otherwise) to the files resulting from a search in helm-ag. I'm thinking the easiest way would be to apply a ...
0
votes
0answers
24 views

Mu4e, emacs-w3e and evil

I'm slowly getting comfortable with emacs+mu4e+mbsync for my emails, and using emacs-w3e for HTML mails with images seems to work. My problem now is that even though I load evil-collection, and the ...
0
votes
1answer
21 views

How to enable bracket navigation in evil mode?

Vim mode has [ ] keys to navigate brackets. See this example. Eg, selecting a comment block can be done this way in vim: [/ v, % Is this possible in emacs with evil mode?
0
votes
2answers
86 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 ...
1
vote
2answers
46 views

Prevent any form of ESC from closing a magit buffer

I'd like to be able to prevent Magit from closing a buffer when I press ESC. I also want to prevent my evil-escape-mode sequence (kj) from closing it as well. Running C-h k ESC gives <escape>...
1
vote
0answers
22 views

Fold all methods in a Python class with Evil

How can I fold all the methods in a Python class? I use Evil and would prefer a pure Evil solution, if possible. I'm looking for a quick way to take something like this: class LongClassIDidNotWrite(...
1
vote
1answer
36 views

Accidentally disabling evil mode in spacemacs

While use spacemacs in evil mode, I sometimes accidentally disable evil mode and I do not understand how I am doing it. And once disabled, I do not know how to reenable the mode without restarting ...
0
votes
1answer
27 views

Evil Mode, how to rebind the caps-lock key to go into normal mode

In addition to the Escape key, I would like to go into Normal mode while editing by pressing the caps-lock key. How do I achieve that? Thus far I have been able to disable the Caps-lock key using ...
0
votes
1answer
16 views

Case insensitive find character in `evil` and `evil-easymotion`

I wonder whether it is possible to make f in evil and/or in evil-easymotion case insensitive?
0
votes
1answer
43 views

Cannot open remote file

I am trying to open a remote file in spacemacs in evil mode on windows using SPC f f. This pops up helm and entering /ssh:myuser@myhost/folder/file.txt produces Wrong type argument: stringp, nil In ...
0
votes
2answers
60 views

how to define an evil-operator to move forward/backward a text-object?

I am trying to define a function that moves to the begin/end of current text-object. First - I define an operator: (evil-define-operator evil-forward-text-object (beg end type) "move to end of ...
0
votes
0answers
6 views

Defining incomplete pairs with evil-surround

Using evil-surround, one can transform word to <em>word<\em> with ysiw<em>. I wonder if there is a general way of defining an incomplete pair (to be completed by em etc.), such that ...
0
votes
1answer
95 views

How do I install the evil package?

First time emacs user trying to install "evil mode". I'm attempting to follow the instructions at https://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-fourteen-days.html. I installed emacs on ...
2
votes
1answer
67 views

How can I make terms searched with `*` or `#` populate the search history?

In my attempt to have * and # work in Spacemacs as they do in Vim, I've followed the solution posted at this question. Those keys now work, but there's one hurdle more to overcome: the searched term ...
1
vote
1answer
52 views

Setting C-p as helm-projectile-find-file

I put this at the very end of my config file: (global-set-key (kbd "C-p") 'helm-projectile-find-file) On Emacs start I can see that it is getting assigned using C-h k C-p. Then when I actually load ...
0
votes
0answers
57 views

How to make Lisp state a default instead of normal?

I'm learning Clojure and Emacs at the same time 🤕 I use Spacemacs with Evil. Recently I've learned about Lisp state and I find it very handy. The only problem is that whenever I switch to insert ...
4
votes
2answers
101 views

Help! Emacs empty my 1 year org file

I have used Emacs Org mode for my notes for several years, and I use Prelude configured with evil. Everything works fine. Until a few minutes ago, I found the note file is empty of content. and the ...
0
votes
0answers
13 views

Surrounding a word at point with `evil-surround`

Using evil-surround, how could one craft a function to surround the full word at point with \(..\)? One might start by adding the bind i (which stands for "inline" or "latex inline math mode") to ...
1
vote
1answer
42 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 ...
0
votes
2answers
99 views

How to unhighlight after searching in evil mode?

I have a text file opened in Spacemacs with evil mode on. When I search for a term by means of /term [Enter] then found "term"s are highlighed. How do I remove that highlighting? I tried / [Enter] - ...
0
votes
0answers
48 views

Define keybindings for org-agenda starting with SPC

Using emacs 25.2.2, general, evil and evil-collection from MELPA. I have the following in my init.el: (general-unbind 'org-agenda-mode-map "SPC") (general-create-definer my-leader :prefix "SPC")...
0
votes
1answer
38 views

C-x and M-x remapped to SPC and SPC-SPC

What would be the best way to configure Emacs to handle the above keybindings for vanilla Emacs? Specifically, I'd like to have SPC work as C-x and SPC SPC work as M-x. I love Spacemacs for the ...
0
votes
0answers
37 views

org-mode + evil: insert heading, set cursor to line ending, and change to insert mode?

I am using spacemacs which contains org-mode and evil. Whenever I insert a heading (either org-insert-heading, org-insert-heading-after-current or org-insert-subheading), I have to do two extra ...
1
vote
0answers
26 views

How to avoid entering visual mode when clicking a link while using evil?

Emacs newbie here using spacemacs. How to avoid entering visual mode when clicking a link while using evil? This is particularly problematic in org-mode.
1
vote
1answer
25 views

Evil mode leave insert state if save via I C-x C-s?

I use evil-mode (specifically in spacemacs) working in org-mode documents. Many times, after evaling code via C-c C-c or exporting via C-c C-e, I find myself saving via C-x C-s (old habits die hard). ...
4
votes
2answers
59 views

How to replace an object with selection?

In Evil mode, is it possible to prevent change and deletion commands from putting the replaced object into the selection (system clipboard)? I would like yanking to still do so. I'd like to be able ...
0
votes
1answer
44 views

Unable to use ediff with emacs and evil due to window configuration

Running emacs 25.2.2 with evil installed and updated from Melpa. When I run ediff, it asks for usual buffer A and buffer B and then ONLY the ediff buffer in its own frame is visible with 'Type ? for ...
3
votes
1answer
38 views

Ignore tags in `org-end-of-line` and similar motions

Is there a convenient function for jumping to the last non-tag character in the line of an org-mode heading? For instance... * This is |my header :tag1:tag2: I would like a command that moves ...
3
votes
1answer
160 views

spacemacs key bindings in plain vanilla evil emacs

As the title suggests, I would like to use spacemacs like keybindings in plain vanilla evil emacs. The spacemacs key bindings are very intuitive. But the package is too heavy for my low-end laptop. ...
0
votes
1answer
32 views

orgDefine a keyboard binding that works only in org-agenda when under evil

Using emacs 25.2.2 on Kubuntu 18.04 with evil and evil-org. Here is a very basic question that I could not get a clear answer for, despite googling. I want to define a keyboard binding that works ...
0
votes
1answer
29 views

Evil pastes after point

Evil pastes after point; How do I make it paste at point? 123456|789 Current behavior: 1234567sth89 Desired: 123456sth789
0
votes
3answers
37 views

Change Case of last searched pattern

Is there a fast way of changing the case of the last searched pattern? Inside Evil mode, I press # key to quickly search for keywords at point. And I want to change the case of all occurences of ...
0
votes
0answers
131 views

Evil mode not working

Using emacs 25.2.2 on Kubuntu 18.04. Using list-packages I installed evil. Using customize-variable I added (evil-mode t) in my ~/.emacs.d/init.el file. But still when I restart emacs, there is no ...
0
votes
0answers
19 views

Enable Evil jump to work across all panes instead of only active pane

Is there a way to enable evil-jump-forward and evil-jump-backward to use the jump list of all panes instead of only the active pane? In the gif below, here's what happens: Start on left pane at ...
0
votes
0answers
37 views

How to convert a region into a Python function?

I'm using emacs with evil and anaconda mode for Python. Sometimes I'd like to convert a region or a block of selected lines into a def (or for/while loop, or class). Is there a way to do this ...
0
votes
1answer
103 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?
0
votes
0answers
24 views

How do I use the primary, not clipboard buffer?

Aka the equivalent of xclip -o -selection primary, not xclip -o -selection clipboard. primary is selection, clipboard is Ctrl-C usually.
0
votes
1answer
56 views

Add dired buffers to evil jump list

I want dired buffers to be included in jump list so I can visit them with Ctrl-i and Ctrl-o. One possible catch is that My Ctrl-x d binding is taken by ido-dired. What I've tried so far (without ...
1
vote
1answer
39 views

Spacemacs Evil mode does not have :for?

I tried to use :for num in [1-30] today in my spacemacs evil mode. But it says Unknown command for Are :for and such command an extension to Vi that is not available for Spacemacs Evil?
0
votes
0answers
44 views

Mark ring in evil

In evil, you can use C-i and C-o to move forward and backward to the recent visited place. If I did many mark action, and want to loop from each of them, how do it effectively in evil?
1
vote
2answers
179 views

Have Ctrl-a increase a number just like in vim

In spacemacs Ctrl-a is being used to move to the beginning of the line. I'm more used to 0 to move to the beginning of the line and $ to the end, which works in spacemacs. Ctrl-a increases numbers in ...
1
vote
1answer
100 views

Spacemacs evil-window key bindings not working?

I have these keybindings in my dotspacemacs/user-config function: ;; Modify evil-mode keybindings from hjkl motion to jkl; ;; Motion mappings (define-key evil-motion-state-map "H" 'evil-window-bottom)...
1
vote
1answer
49 views

Evil mode visual block not selecting full lines

I'm in the process of switching myself over to Emacs from Atom, and I set Evil mode because I do a lot of vim'ing on my personal and non-personal machines. It seems Evil mode is working all right, ...
0
votes
0answers
57 views

Fixing Evil inside Emacs terminal mode

I use Evil mode inside Emacs to emulate vim-style editing. In the Xwindows based graphical user interface of Emacs on Ubuntu 16.04, Evil mode works perfectly. When I launch emacs in terminal mode ...
2
votes
1answer
112 views

Enabling all Emacs keys in Evil's insert and replace states

I tried Spacemacs recently and I really liked the idea of their hybrid mode. But sadly, I can't figure out how to do a few things in Spacemacs so I'm thinking of just using Evil in regular Emacs. So, ...