-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added hyrolo search result bindings * set correct hyrolo search navigation keys * hyrolo mode * setting initial state * declared functions for hyrolo
- Loading branch information
1 parent
e49d8e9
commit adc69d2
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
;;; evil-collection-hyrolo.el --- Bindings for `hyrolo' -*- lexical-binding: t -*- | ||
|
||
;;; Commentary: | ||
;;; Bindings for hyrolo. | ||
|
||
;;; Code: | ||
(require 'evil-collection) | ||
(require 'hyperbole nil t) | ||
|
||
(defvar hyrolo-mode-map) | ||
(defconst evil-collection-hyrolo-maps '(hyrolo-mode-map)) | ||
|
||
(declare-function hyrolo-to-previous-loc "hyrolo") | ||
(declare-function hyrolo-to-next-loc "hyrolo") | ||
(declare-function hyrolo-overview "hyrolo") | ||
(declare-function hyrolo-outline-show-all "hyrolo") | ||
|
||
(defun evil-collection-hyrolo-setup () | ||
"Set up `evil' bindings for hyrolo." | ||
(evil-collection-define-key 'normal 'hyrolo-mode-map | ||
(kbd "[[") #'hyrolo-to-previous-loc | ||
(kbd "]]") #'hyrolo-to-next-loc | ||
(kbd "C-k") #'hyrolo-to-previous-loc | ||
(kbd "C-j") #'hyrolo-to-next-loc | ||
(kbd "gk") #'hyrolo-to-previous-loc | ||
(kbd "gj") #'hyrolo-to-next-loc | ||
(kbd "zo") #'hyrolo-outline-show-all | ||
(kbd "zc") #'hyrolo-overview) | ||
(evil-set-initial-state 'hyrolo-mode 'normal)) | ||
|
||
(provide 'evil-collection-hyrolo) | ||
;;; evil-collection-hyrolo.el ends here |