From 3e832f06a64e935eb5c1659c39efb2906cac92ff Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 6 Nov 2017 17:51:24 +0100 Subject: [PATCH] Add evil-debbugs --- evil-collection.el | 1 + evil-debbugs.el | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 evil-debbugs.el diff --git a/evil-collection.el b/evil-collection.el index 1f6ff01..f17a544 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -41,6 +41,7 @@ cider compile custom + debbugs debugger diff-mode dired diff --git a/evil-debbugs.el b/evil-debbugs.el new file mode 100644 index 0000000..78876a0 --- /dev/null +++ b/evil-debbugs.el @@ -0,0 +1,72 @@ +;;; evil-debbugs.el --- Evil bindings for debbugs -*- lexical-binding: t -*- + +;; Copyright (C) 2017 Pierre Neidhardt + +;; Author: Pierre Neidhardt +;; Maintainer: James Nguyen , Pierre Neidhardt +;; URL: https://github.com/jojojames/evil-collection +;; Version: 0.0.1 +;; Package-Requires: ((emacs "25.1")) +;; Keywords: emacs, compile, evil +;; HomePage: https://github.com/jojojames/evil-collection + +;; This file 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, or (at your +;; option) any later version. +;; +;; This file 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. +;; +;; For a full copy of the GNU General Public License +;; see . + +;;; Commentary: + +;;; Code: + +(require 'evil) +(require 'debbugs) + +(defun evil-diff-mode-set-keys () + (evil-set-initial-state 'debbugs-gnu-mode 'motion) + + (evil-define-key 'motion debbugs-gnu-mode-map + ;; motion + (kbd "") 'forward-button + (kbd "") 'backward-button + (kbd "SPC") 'scroll-up-command + + (kbd "") 'debbugs-gnu-select-report + "c" 'debbugs-gnu-send-control-message + "d" 'debbugs-gnu-display-status + + ;; filtering + (kbd "s") 'debbugs-gnu-narrow-to-status + ;; "S" 'debbugs-gnu-widen ; Useless if we can just press "s RET" (empty filter). + "S" 'debbugs-gnu-toggle-suppress + "r" 'debbugs-gnu-show-all-blocking-reports + + ;; sorting + "o" 'debbugs-gnu-toggle-sort + "O" 'tabulated-list-sort + + ;; show + "gB" 'debbugs-gnu-show-blocking-reports + "gb" 'debbugs-gnu-show-blocked-by-reports + + ;; marking + "m" 'debbugs-gnu-toggle-tag + + ;; update + "gr" 'debbugs-gnu-rescan + + ;; quit + "q" 'quit-window + "ZQ" 'quit-window + "ZZ" 'quit-window)) + +(provide 'evil-debbugs) +;;; evil-debbugs.el ends here