evil-collection/evil-collection.el

127 lines
3.6 KiB
EmacsLisp
Raw Normal View History

2017-11-05 17:05:46 +01:00
;;; evil-collection.el --- A set of keybindings for evil-mode. -*- 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:
;;; A set of keybindings for evil-mode.
;;; Code:
;;;###autoload
(defun evil-collection-builtin-modes-init ()
""
2017-11-05 17:53:59 +01:00
(interactive)
(with-eval-after-load 'bookmark
(require 'evil-bookmark)
2017-11-05 18:00:26 +01:00
(evil-bookmark-set-keys))
(with-eval-after-load 'compile
(require 'evil-compile)
2017-11-05 18:02:29 +01:00
(evil-compile-set-keys))
(with-eval-after-load 'dired
(require 'evil-dired)
2017-11-05 18:05:21 +01:00
(evil-dired-set-keys))
(with-eval-after-load 'edebug
(require 'evil-edebug)
2017-11-05 18:12:14 +01:00
(evil-edebug-set-keys))
2017-11-05 19:17:45 +01:00
(with-eval-after-load 'help-mode
(require 'evil-help)
(evil-help-set-keys))
2017-11-05 18:12:14 +01:00
(with-eval-after-load 'ibuffer
(require 'evil-ibuffer)
2017-11-05 18:22:10 +01:00
(evil-ibuffer-set-keys))
2017-11-05 19:19:34 +01:00
(with-eval-after-load 'package
(require 'evil-package-menu)
(evil-package-menu-set-keys))
2017-11-05 19:21:06 +01:00
(with-eval-after-load 'profiler
(require 'evil-profiler))
2017-11-05 18:22:10 +01:00
(if (<= emacs-major-version 25)
(progn
(require 'evil-occur)
(evil-occur-set-keys))
(with-eval-after-load 'replace
(require 'evil-occur)
(evil-occur-set-keys)))
2017-11-05 18:32:45 +01:00
2017-11-05 19:15:44 +01:00
(with-eval-after-load 'term
(require 'evil-ansi-term)
(evil-ansi-term-set-keys))
2017-11-05 18:32:45 +01:00
(with-eval-after-load 'xref
(require 'evil-xref)
(evil-xref-set-keys)))
2017-11-05 17:05:46 +01:00
;;;###autoload
(defun evil-collection-extra-modes-init ()
""
(interactive)
(with-eval-after-load 'ag
(require 'evil-ag)
2017-11-05 17:57:45 +01:00
(evil-ag-set-keys))
(with-eval-after-load 'cider
(require 'evil-cider)
2017-11-05 18:07:49 +01:00
(evil-cider-set-keys))
(with-eval-after-load 'elisp-refs
(require 'evil-elisp-refs)
2017-11-05 18:09:53 +01:00
(evil-elisp-refs-set-keys))
(with-eval-after-load 'flycheck
(require 'evil-flycheck)
2017-11-05 18:14:10 +01:00
(evil-flycheck-set-keys))
(with-eval-after-load 'ggtags
(require 'evil-ggtags)
2017-11-05 18:16:24 +01:00
(evil-ggtags-set-keys))
(with-eval-after-load 'ivy
(require 'evil-ivy)
2017-11-05 18:18:39 +01:00
(evil-ivy-set-keys))
(with-eval-after-load 'macrostep
(require 'evil-macrostep)
2017-11-05 18:46:34 +01:00
(evil-macrostep-set-keys))
2017-11-05 18:25:11 +01:00
(with-eval-after-load 'p4
(require 'evil-p4)
2017-11-05 18:27:03 +01:00
(evil-p4-set-keys))
(with-eval-after-load 'pass
(require 'evil-pass)
2017-11-05 18:29:06 +01:00
(evil-pass-set-keys))
(with-eval-after-load 'prodigy
(require 'evil-prodigy)
2017-11-05 18:31:18 +01:00
(evil-prodigy-set-keys))
(with-eval-after-load 'slime
(require 'evil-slime)
(evil-collection-set-keys))
(with-eval-after-load 'vlf
(require 'evil-vlf)
(evil-vlf-set-keys)))
2017-11-05 17:05:46 +01:00
;;;###autoload
(defun evil-collection-all-modes-init ()
"Register Evil bindings for all supported modes."
(interactive)
(evil-collection-builtin-modes-init)
(evil-collection-extra-modes-init))
(provide 'evil-collection)
;;; evil-collection.el ends here