summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-09-04 19:29:59 +0200
committerjohannst <johannes.stoelp@gmail.com>2019-09-04 19:29:59 +0200
commitf5d2040987742006aec3684d0c2cc175c2b9c72f (patch)
treedac41a4c3e95ea5c6f91fade16428b9295144760
parentbb81a7e225af120ff391916b0e9dde8156ee1afd (diff)
downloaddotfiles-f5d2040987742006aec3684d0c2cc175c2b9c72f.tar.gz
dotfiles-f5d2040987742006aec3684d0c2cc175c2b9c72f.zip
add evil scroll + occur key mapping
-rw-r--r--emacs.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.el b/emacs.el
index 73e7a4b..41689ef 100644
--- a/emacs.el
+++ b/emacs.el
@@ -13,6 +13,9 @@
'(backup-directory-alist `(("." . "~/.emacs.saves")))
)
+;; global kbd maps
+(define-key isearch-mode-map (kbd "M-o") 'isearch-occur)
+
;; only y/n prompt (no RET needed)
(defalias 'yes-or-no-p 'y-or-n-p)
@@ -50,6 +53,9 @@
(defvar leader-map (make-sparse-keymap)
"Keymap for <leader> key.")
(define-key evil-normal-state-map (kbd "SPC") leader-map)
+ ;; scrolling
+ (define-key evil-normal-state-map (kbd "C-k") 'evil-scroll-up)
+ (define-key evil-normal-state-map (kbd "C-j") 'evil-scroll-down)
)
;; org