Stack Exchange Network

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

New answers tagged

0

I have something like this in my config, inspired by spacemacs: (use-package evil :init (use-package evil-leader :commands (evil-leader-mode global-evil-leader-mode) :demand :config (evil-leader/set-leader "SPC") (global-evil-leader-mode t)) :config (evil-mode 1)) (evil-leader/set-key "bn" 'next-buffer "bp" 'previous-buffer) ...


0

As pointed to in this answer, setting evil-move-beyond-eol to non-nil, although not very vimesque, would allow you to move pass the last character, fixing the unwanted behavior you're having.


0

(add-hook 'evil-insert-state-exit-hook (lambda () (call-interactively #'save-buffer))) This will call the underlying command of C-x C-s. You can also call evil-write if you prefer the :w command behaviour


1

This is impossible with Evil's current design. Here's roughly what happens for a normal Emacs command: Emacs waits for a complete keybinding You press a key Emacs looks it up in the currently active keymaps It finds a match for a prefix It waits for another key in that prefix map It looks it up again This repeats until a full keybinding has been read Emacs ...


1

All you need to do is assign your keybinding of choice to evil-window-map, whose docstring is: Prefix command (definition is a keymap associating keystrokes with commands). In your case, the following should work: (global-set-key (kbd "\C-c w") #'evil-window-map)


Top 50 recent answers are included