From f40704a57fd33b4bfad64147a2b771fc8961fdfc Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Sun, 22 Apr 2018 14:42:46 -0700 Subject: [PATCH] Match eldoc integration with evil https://github.com/emacs-evil/evil/commit/9589f2c099bb9cc4b7e04097fe339d82a7288cad --- evil-collection-eldoc.el | 39 +++++++++++++++++++++++++++++++++++++++ evil-collection.el | 1 + 2 files changed, 40 insertions(+) create mode 100644 evil-collection-eldoc.el diff --git a/evil-collection-eldoc.el b/evil-collection-eldoc.el new file mode 100644 index 0000000..ff08234 --- /dev/null +++ b/evil-collection-eldoc.el @@ -0,0 +1,39 @@ +;;; evil-collection-eldoc.el --- Bindings for `eldoc'. -*- lexical-binding: t -*- + +;; Copyright (C) 2018 James Nguyen + +;; Author: James Nguyen +;; Maintainer: James Nguyen +;; Pierre Neidhardt +;; URL: https://github.com/emacs-evil/evil-collection +;; Version: 0.0.1 +;; Package-Requires: ((emacs "25.1")) +;; Keywords: evil, emacs, 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 . + +;;; Commentary: +;;; Bindings for `eldoc'. + +;;; Code: +(require 'eldoc) +(require 'evil) + +(defun evil-collection-eldoc-setup () + "Set up `evil' bindings for `eldoc'.." + (when (fboundp 'eldoc-add-command-completions) + (eldoc-add-command-completions "evil-window-"))) + +(provide 'evil-collection-eldoc) +;;; evil-collection-eldoc.el ends here diff --git a/evil-collection.el b/evil-collection.el index a36c1ff..3f5dd6e 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -81,6 +81,7 @@ or evil-collection.") dired doc-view edebug + eldoc elfeed elisp-mode elisp-refs