Questions tagged [evil-mode]

Evil (Extensible Vi Layer for Emacs) is a vim emulator for emacs

Evil is a reasonably full-featured and extensible vim emulator for emacs. It may be considered the successor to both Vim Mode and Viper/Vimpulse

Evil home page

183 questions
0
votes
1 answer

Getting debugger lisp error: (void-variable w)

Sometimes when I save a file I get a debugger error message in Emacs, it doesn't happen always but happens randomly whenever I save a file. The error message is as follows Debugger entered--Lisp error: (void-variable w) eval(w t) …
Zer0day
  • 89
  • 5
0
votes
1 answer

Receiving "wrong type argument: commandp..." when hacking around emacs evil mode

I am trying to override some of the default keymaps of emacs evil mode. What I have done is this: (evil-define-key 'visual 'global "<" (lambda () (evil-shift-left) (evil-visual-restore)) ">" (lambda () (evil-shift-right) …
0
votes
1 answer

How to move to end of character when switching from normal to insert mode in Emacs Doom or Vim?

Emacs-Doom Vim-mod How to move my box to end of character when switching from normal to insert mode in Emacs Doom Vim-mode? I am a Doom Emacs newcomer. What do I need to insert in my config? Please instruction for noob)
0
votes
1 answer

Using evil-mode in dired or disable evil-mode in dired

I have been using emacs for note-taking with org mode. I don't like other note-taking apps. I have come to like emacs for other tasks as well. However, I have trouble navigating dired with evil-mode. I have to Ctrl-z every time I want to open a new…
0
votes
0 answers

`clang-format` on the `=` evil key?

How can you make it so the = key in evil-mode (Vim mode) in Spacemacs does clang-format if a .clang-format file is available otherwise if unavailable do default indent format behaviour?
davidj361
  • 147
  • 7
0
votes
1 answer

In evil-mode how to just press J to move the cursor down 3 lines

When in evil-mode, I can make the cursor go down 3 lines by command 'C-u 3 M-x evil-next-line' , but how can I make the cursor go down 3 lines by just pressing J?
Giant
  • 1
  • 1
0
votes
1 answer

How to undo all changes when using evil-visual-block in Emacs in Evil mode?

I am using (evil-visual-block) and after the block selection pressing capital letter I and then typing what I want and pressing Esc when I am OK. Now, I see there is a mistake. How to quickly undo everything? Because now when I press the key u for…
fegax
  • 97
  • 1
  • 7
0
votes
1 answer

What function does evil mode run when I press :w?

I was wondering what function evil mode ran when I pressed :w. I tried using C-h k and then I pressed :w but it only registed the : I pressed and showed me information about evil-ex function instead of showing me what function is run when I save the…
Ali Awan
  • 180
  • 10
0
votes
1 answer

Using the :general with use-package sometimes doesn't work

I started converting my evil-define-key calls to use the :general extension to use-package, and sometimes they work, and sometimes not. Re-evaluating the (use-package ...) s-expression doesn't change the behavior, so I'm assuming I have a…
Howard Abrams
  • 186
  • 2
  • 5
0
votes
1 answer

Evil mode has unpredictable behavior when using compile

I have this issue, where whenever I run the compile command evil mode creates a new window instead of using the windows on the screen which the normal compile command would or it would compile on the current window I am on. Take the following images…
Ali Awan
  • 180
  • 10
0
votes
1 answer

How to get rid of weird white bar in the minibuffer Emacs

I have this weird issue where whenever I type down :w or any other kind of command which can be used in vim's command mode (I am using evil-mode in emacs so that I can vim emulation) I always get this weird white cursor at the bottom of the…
Ali Awan
  • 180
  • 10
0
votes
1 answer

How can I add a keymap to the emulation-mode-map-alists? Emacs

I have made a keymap and added it to a minor mode: (defvar my-keymap (make-sparse-keymap)) (progn (define-key my-keymap (kbd "C-c s") '(lambda() (interactive) (message "Hello World"))) ) (define-minor-mode my-keybindings-mode nil …
Ali Awan
  • 180
  • 10
0
votes
1 answer

How can i remap a non-ascii keyboard character in evil-mode?

I would like to remap the key "é" on my keyboard to ctrl-w in emacs evil-mode (doom emacs) I tried with (define-key evil-operator-state-map "é" "\C-w") ;; and (global-set-key "é" "\C-w") But none of these worked. Is what I'm trying to do possible…
rambi
  • 1,013
  • 1
  • 7
  • 25
0
votes
1 answer

Using evil-leader with use-package: Error (use-package): evil-leader/:config: Invalid function: (global-evil-leader-mode)

I'm trying to add use-package to my init.el and I'm running into this error: Error (use-package): evil-leader/:config: Invalid function: (global-evil-leader-mode) Here's a stripped down init.el that produces that error (assumes evil and evil-leader…
0
votes
0 answers

how to provide emacs custom command with default switches

I'm new to emacs, I have the following keybinding which invokes my custom keybinding. (eval-after-load 'evil-ex '(evil-ex-define-cmd "mf" 'someFun)) It calls someFun correctly, but what if I want it to have default switches like "-ignore-case"…
Dennis
  • 159
  • 1
  • 11