diff --git a/evil-bookmark.el b/evil-bookmark.el new file mode 100644 index 0000000..8a3229d --- /dev/null +++ b/evil-bookmark.el @@ -0,0 +1,39 @@ +;;; evil-bookmarks.el --- Evil bindings for bookmarks. -*- lexical-binding: t -*- + +;; Copyright (C) 2017 James Nguyen + +;; Author: James Nguyen +;; Maintainer: James Nguyen +;; 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 . + +;;; 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 diff --git a/evil-collection.el b/evil-collection.el index 44c4828..3539613 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -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 ()