Skip to content

Commit

Permalink
Hyrolo: Initial support (#822)
Browse files Browse the repository at this point in the history
* Added hyrolo search result bindings

* set correct hyrolo search navigation keys

* hyrolo mode

* setting initial state

* declared functions for hyrolo
  • Loading branch information
julian-hoch authored Aug 12, 2024
1 parent e49d8e9 commit adc69d2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions evil-collection.el
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ See `evil-collection-init' and `evil-collection--modes-with-delayed-setup'."
helpful
hg-histedit
hungry-delete
hyrolo
ibuffer
(image image-mode)
image-dired
Expand Down
32 changes: 32 additions & 0 deletions modes/hyrolo/evil-collection-hyrolo.el
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

0 comments on commit adc69d2

Please sign in to comment.