From 1e5c43b09e2b86b756173184fb4780372556961f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 1 Aug 2020 18:09:06 +0100 Subject: +leader map Basically just duplicate evil-leader package, setting up SPC to be the leader. I am using this binding prefix for single binds that I may find useful. --- Emacs/.config/emacs/config.org | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 6eb683c..6326723 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -166,14 +166,25 @@ * Evil ** Evil default Setup the evil package, with some basic keybinds. + Also declare a leader-map at "SPC". #+BEGIN_SRC emacs-lisp (use-package evil :init (setq evil-want-keybinding nil) :config (evil-mode +1) - (bind-key "TAB" #'evil-jump-item evil-normal-state-map) - (evil-define-key 'visual 'emacs-lisp-mode-map "gr" #'eval-region)) + (evil-define-key 'normal global-map + "TAB" #'evil-jump-item + "SPC" nil) + (evil-define-key 'visual 'emacs-lisp-mode-map "gr" #'eval-region) + (bind-keys + :map evil-normal-state-map + :prefix "SPC" + :prefix-map +evil/leader-map + ("f" . find-file) + ("s" . save-buffer) + ("q" . save-buffers-kill-terminal) + ("b" . switch-to-buffer))) #+END_SRC ** Evil surround #+BEGIN_SRC emacs-lisp -- cgit v1.2.3-13-gbd6f