summaryrefslogtreecommitdiff
path: root/emacs.el
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-08-25 20:42:53 +0200
committerjohannst <johannes.stoelp@gmail.com>2019-08-25 20:42:53 +0200
commit2e4f31cfb1cd031231e79117bf281cbb2adcc25a (patch)
treea481224dd8f00eace10864dbfcd009af5af007b3 /emacs.el
parentc0eb40dc25e646ab0dd20c557976e8c576c54f9e (diff)
downloaddotfiles-2e4f31cfb1cd031231e79117bf281cbb2adcc25a.tar.gz
dotfiles-2e4f31cfb1cd031231e79117bf281cbb2adcc25a.zip
added leader key + helm-projectile + racer-find-definition mapping
Diffstat (limited to 'emacs.el')
-rw-r--r--emacs.el7
1 files changed, 7 insertions, 0 deletions
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 <leader> key.")
+ (define-key evil-normal-state-map (kbd "SPC") leader-map)
)
;; org
@@ -63,6 +67,7 @@
:config
(define-key helm-map (kbd "<tab>") '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)
)