From 78efa7822094d9b318f9fe487e039949bafa8ce0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 23 Aug 2020 17:15:03 +0100 Subject: ~evil-define -> general --- Emacs/.config/emacs/config.org | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 62057d9..b35cc82 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -282,17 +282,22 @@ leader-map at "SPC". #+begin_src emacs-lisp (use-package evil :hook (after-init-hook . evil-mode) + :general + (general-def + :states 'normal + [remap evil-window-vsplit] #'make-frame + "TAB" #'evil-jump-item) + (general-def + :states 'visual + :keymaps 'emacs-lisp-mode-map + "gr" #'eval-region) + (leader + "w" #'evil-window-map + "wd" #'delete-frame) :init (setq evil-want-keybinding nil evil-split-window-below t - evil-vsplit-window-right t) - :config - (evil-define-key 'normal global-map - "TAB" #'evil-jump-item) - (evil-define-key 'visual 'emacs-lisp-mode-map "gr" #'eval-region) - (leader - "w" #'evil-window-map - "wd" #'evil-window-delete)) + evil-vsplit-window-right t)) #+end_src *** Evil surround #+begin_src emacs-lisp -- cgit v1.2.3-13-gbd6f