Preparation to be evil again >:)

This commit is contained in:
kj 2022-11-28 07:23:27 -04:00
parent 76e9e4062c
commit 92ac29ee5d
2 changed files with 24 additions and 0 deletions

23
configs/init-evil.el Normal file
View File

@ -0,0 +1,23 @@
;;; 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

View File

@ -49,6 +49,7 @@
(require 'init-treemacs)
;;(require 'init-ctags)
(require 'init-ivy)
;; (require 'init-evil)
(require 'init-keys)
;; Lenguajes