diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-01 18:09:06 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-01 18:09:06 +0100 |
commit | 1e5c43b09e2b86b756173184fb4780372556961f (patch) | |
tree | 6be96300eaddd0a29eabd74d566d0f610f8be717 /Emacs/.config/emacs | |
parent | 8a2f54d123701574223a3a1a23ebb17d56b33b59 (diff) | |
download | dotfiles-1e5c43b09e2b86b756173184fb4780372556961f.tar.gz dotfiles-1e5c43b09e2b86b756173184fb4780372556961f.tar.bz2 dotfiles-1e5c43b09e2b86b756173184fb4780372556961f.zip |
+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.
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 15 |
1 files changed, 13 insertions, 2 deletions
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 |