2020-02-01 04:46:50 +01:00
|
|
|
;;; evil-collection-ebuku.el --- Evil bindings for Ebuku -*- lexical-binding: t -*-
|
|
|
|
|
2022-05-21 16:30:19 +02:00
|
|
|
;; Copyright (C) 2020-2022 Alexis
|
2020-02-01 04:46:50 +01:00
|
|
|
|
|
|
|
;; Author: Alexis <flexibeast@gmail.com>
|
|
|
|
;; Maintainer: Alexis <flexibeast@gmail.com>
|
|
|
|
;; URL: https://github.com/emacs-evil/evil-collection
|
|
|
|
;; Version: 0.0.1
|
2022-06-07 02:53:16 +02:00
|
|
|
;; Package-Requires: ((emacs "26.3"))
|
2020-02-01 04:46:50 +01:00
|
|
|
;; Keywords: evil, ebuku, tools
|
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;; Evil bindings for Ebuku.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(require 'evil-collection)
|
2020-02-16 05:18:34 +01:00
|
|
|
(require 'ebuku nil t)
|
2020-02-01 04:46:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun evil-collection-ebuku-setup ()
|
|
|
|
"Set up `evil' bindings for `Ebuku'."
|
|
|
|
(evil-collection-define-key 'normal 'ebuku-mode-map
|
|
|
|
"q" 'quit-window
|
|
|
|
"a" 'ebuku-add-bookmark
|
|
|
|
"d" 'ebuku-delete-bookmark
|
|
|
|
"x" 'ebuku-delete-bookmark
|
|
|
|
"e" 'ebuku-edit-bookmark
|
|
|
|
"gr" 'ebuku-refresh
|
|
|
|
"j" 'ebuku-next-bookmark
|
|
|
|
(kbd "C-j") 'ebuku-next-bookmark
|
|
|
|
"k" 'ebuku-previous-bookmark
|
|
|
|
(kbd "C-k") 'ebuku-previous-bookmark
|
|
|
|
"r" 'ebuku-search-on-recent
|
|
|
|
"s" 'ebuku-search
|
|
|
|
"*" 'ebuku-show-all
|
|
|
|
"-" 'ebuku-toggle-results-limit
|
|
|
|
"t" 'ebuku-toggle-results-limit
|
|
|
|
(kbd "RET") 'ebuku-open-url
|
2021-10-01 04:54:16 +02:00
|
|
|
"C" 'ebuku-copy-url
|
2022-05-21 16:30:19 +02:00
|
|
|
"T" 'ebuku-copy-title
|
|
|
|
"I" 'ebuku-copy-index
|
2020-02-01 04:46:50 +01:00
|
|
|
[mouse-1] 'ebuku-open-url
|
|
|
|
[mouse-2] 'ebuku-open-url))
|
|
|
|
|
|
|
|
|
|
|
|
(provide 'evil-collection-ebuku)
|
|
|
|
;;; evil-collection-ebuku.el ends here
|