aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-23 17:15:03 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-23 17:15:03 +0100
commit78efa7822094d9b318f9fe487e039949bafa8ce0 (patch)
treeaa40780083d2fa99d3792e2a4c55d93cd6b83a90 /Emacs/.config
parentd8afe4c9d0b9971048e8e170782dd898e67bc5c0 (diff)
downloaddotfiles-78efa7822094d9b318f9fe487e039949bafa8ce0.tar.gz
dotfiles-78efa7822094d9b318f9fe487e039949bafa8ce0.tar.bz2
dotfiles-78efa7822094d9b318f9fe487e039949bafa8ce0.zip
~evil-define -> general
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org21
1 files changed, 13 insertions, 8 deletions
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