Add evil-bookmark

This commit is contained in:
James Nguyen 2017-11-05 08:53:59 -08:00
parent e4d6645ff0
commit 62f145c5be
2 changed files with 43 additions and 1 deletions

39
evil-bookmark.el Normal file
View File

@ -0,0 +1,39 @@
;;; evil-bookmarks.el --- Evil bindings for bookmarks. -*- lexical-binding: t -*-
;; Copyright (C) 2017 James Nguyen
;; Author: James Nguyen <james@jojojames.com>
;; Maintainer: James Nguyen <james@jojojames.com>
;; URL: https://github.com/jojojames/evil-collection
;; Version: 0.0.1
;; Package-Requires: ((emacs "25.1"))
;; Keywords: evil, emacs
;; HomePage: https://github.com/jojojames/evil-collection
;; 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 bookmarks.
;;; Code:
(require 'bookmark)
(require 'evil-collection-util)
(defun evil-bookmark-set-keys ()
(+evilify-map
bookmark-bmenu-mode-map
:mode bookmark-bmenu-mode))
(provide 'evil-bookmark)
;;; evil-bookmarks.el ends here

View File

@ -31,7 +31,10 @@
;;;###autoload
(defun evil-collection-builtin-modes-init ()
""
(interactive))
(interactive)
(with-eval-after-load 'bookmark
(require 'evil-bookmark)
(evil-bookmark-set-keys)))
;;;###autoload
(defun evil-collection-extra-modes-init ()