New answers tagged

1 vote
Accepted

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

The commands entered by pressing : are, similar to vim, called 'evil-ex-commands'. How to remap them is described in this issue. For your case, you probably want: (global-set-key [remap evil-quit] '...
user avatar
  • 2,040
0 votes

Create avy zap to char and up to char function

evil-avy-goto-char-in-line is an evil motion command, which means that you can combine it with d, y, c etc. You could bind it to f using (evil-global-set-key 'motion "f" #'avy-goto-char-in-...
user avatar
  • 2,040
1 vote

Evil mode send escape before Alt/Meta-command

I do not understand why you would prefer to have some binding that would switch to normal-state instead of just staying in insert-state, and in that case you can simply bind the normal-state-commands ...
user avatar
  • 2,040
1 vote
Accepted

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

You can use kbd for defining the keybinding. You can look up the string that kbd expects by using C-h k M-SPC. Subsequently, you can just use the insert function inside a command to insert some string....
user avatar
  • 2,040

Top 50 recent answers are included