confi-emacs-actual/configs/init-evil.el

24 lines
538 B
EmacsLisp
Raw Normal View History

2022-11-28 12:23:27 +01:00
;;; init-evil.el --- VIM dentro de emacs -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
;;; Commentary:
;;; Code:
(use-package evil
:defer t
:straight t
:hook (after-init . evil-mode)
:config
(setq evil-toggle-key "C-'")
(setq evil-default-state 'emacs)
(setq evil-emacs-state-cursor 'bar)
(evil-define-key '(normal insert visual replace operator motion emacs) 'global (kbd "C-z") 'evil-undo)
)
(provide 'init-evil)
;;; init-evil.el ends here