diff options
| author | Justin Burkett <justin@burkett.cc> | 2019-10-02 15:11:02 -0400 |
|---|---|---|
| committer | James N <james@jojojames.com> | 2019-10-09 19:41:45 -0700 |
| commit | 1fd291f082175a61e79b17c5ef2e2699d789a0ba (patch) | |
| tree | a3dedf3d06005df1b3677dd34724754ebb342abd /modes/tablist | |
| parent | e2cb2b3dc5ad06ec70643b4152cebc582f350f8e (diff) | |
Move evil-collection-tablist to subdirectory
Diffstat (limited to 'modes/tablist')
| -rw-r--r-- | modes/tablist/evil-collection-tablist.el | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/modes/tablist/evil-collection-tablist.el b/modes/tablist/evil-collection-tablist.el new file mode 100644 index 0000000..f339d24 --- /dev/null +++ b/modes/tablist/evil-collection-tablist.el @@ -0,0 +1,66 @@ +;;; evil-collection-tablist.el --- Evil bindings for Tablist -*- lexical-binding: t -*- + +;; URL: https://github.com/emacs-evil/evil-collection +;; Version: 0.0.1 +;; Package-Requires: ((emacs "25.1")) +;; Keywords: evil, tablist, 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 Tablist. + +;;; Code: +(require 'tablist nil t) +(require 'evil-collection) + +(defconst evil-collection-tablist-maps '(tablist-mode-map tablist-minor-mode-map)) + +(defvar tablist-mode-regexp-map) +(defvar tablist-mode-mark-map) +(defvar tablist-mode-filter-map) + +;;;###autoload +(defun evil-collection-tablist-setup () + "Set up `evil' bindings for `tablist'." + + (evil-collection-define-key 'normal 'tablist-mode-map + (kbd "RET") 'tablist-find-entry + "d" 'tablist-flag-forward + "f" 'tablist-find-entry + "D" 'tablist-do-delete + "C" 'tablist-do-copy + "R" 'tablist-do-rename + "x" 'tablist-do-flagged-delete) + + (evil-collection-define-key 'normal 'tablist-minor-mode-map + "<" 'tablist-shrink-column + ">" 'tablist-enlarge-column + "U" 'tablist-unmark-all-marks + "\t" 'tablist-forward-column + "g%" tablist-mode-regexp-map + "g*" tablist-mode-mark-map + "g/" tablist-mode-filter-map + "gr" 'tablist-revert + "k" 'tablist-do-kill-lines + "m" 'tablist-mark-forward + "q" 'tablist-quit + "s" 'tablist-sort + "t" 'tablist-toggle-marks + "u" 'tablist-unmark-forward + (kbd "TAB") 'tablist-forward-column + [backtab] 'tablist-backward-column)) + +(provide 'evil-collection-tablist) +;;; evil-collection-tablist.el ends here |
