-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidekick-evil.el
39 lines (34 loc) · 1.12 KB
/
sidekick-evil.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;;; sidekick-evil.el --- Description -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2022 Aryslan Yakshibaev
;;
;; Author: Aryslan Yakshibaev <[email protected]>
;; Maintainer: Aryslan Yakshibaev <[email protected]>
;; Created: June 26, 2022
;; Modified: June 26, 2022
;; Version: 0.0.1
;; Keywords: extensions, lisp, evil
;; Homepage: https://github.com/VernonGrant/sidekick.el
;; Package-Requires: ((emacs "26.1"))
;;
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;; `sidekick-evil' provides integration for `sidekick' with `evil-mode'
;;
;;; Code:
(require 'evil)
(require 'sidekick)
(evil-define-state sidekick
"Sidekick state"
:cursor 'box
:enable (motion))
(evil-set-initial-state 'sidekick-mode 'sidekick)
(define-key evil-sidekick-state-map (kbd "q") #'sidekick-quit)
(define-key evil-sidekick-state-map "g" #'sidekick-refresh)
(define-key evil-sidekick-state-map "n" #'sidekick-open-next-match)
(define-key evil-sidekick-state-map "N" #'sidekick-open-previous-match)
(define-key evil-sidekick-state-map (kbd "RET") #'sidekick-open-match)
(provide 'sidekick-evil)
;;; sidekick-evil.el ends here