From 2e4f31cfb1cd031231e79117bf281cbb2adcc25a Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 25 Aug 2019 20:42:53 +0200 Subject: added leader key + helm-projectile + racer-find-definition mapping --- emacs.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs.el') diff --git a/emacs.el b/emacs.el index 29fbf4a..3a023fe 100644 --- a/emacs.el +++ b/emacs.el @@ -42,6 +42,10 @@ :ensure t :config (evil-mode t) + ;; leader key + (defvar leader-map (make-sparse-keymap) + "Keymap for key.") + (define-key evil-normal-state-map (kbd "SPC") leader-map) ) ;; org @@ -63,6 +67,7 @@ :config (define-key helm-map (kbd "") 'helm-execute-persistent-action) (define-key helm-map (kbd "C-z") 'helm-select-action) + (define-key leader-map "ff" 'helm-projectile) (helm-mode t) ) @@ -110,4 +115,6 @@ (:map rust-mode-map ("TAB" . company-indent-or-complete-common) ) + :config + (evil-local-set-key 'normal (kbd "C-]") 'racer-find-definition) ) -- cgit v1.2.3