From f5d2040987742006aec3684d0c2cc175c2b9c72f Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 4 Sep 2019 19:29:59 +0200 Subject: add evil scroll + occur key mapping --- emacs.el | 6 ++++++ 1 file changed, 6 insertions(+) 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 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 -- cgit v1.2.3