From 5447cada95cbbff1e66161c7b570cbf094947514 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 27 Oct 2014 12:42:31 +0100 Subject: rename mode to grid-engine-list-mode --- grid-engine-mode.el | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/grid-engine-mode.el b/grid-engine-mode.el index 6162ec1..5c0265d 100644 --- a/grid-engine-mode.el +++ b/grid-engine-mode.el @@ -1,13 +1,13 @@ ;;; -*- lexical-binding: t -*- (require 'derived) -(define-derived-mode grid-engine +(define-derived-mode grid-engine-list-mode tabulated-list-mode "Grid Engine" "Major mode for interacting with Grid Engine. - \\{grid-engine-mode-map}" + \\{grid-engine-mode-list-mode-map}" (interactive) (kill-all-local-variables) - (setq major-mode 'grid-engine) + (setq major-mode 'grid-engine-list-mode) (setq mode-name "Grid Engine") (grid-engine--init-keymap) (grid-engine--init-header) @@ -16,7 +16,7 @@ (lambda () (grid-engine--init-header) (grid-engine-list-jobs))) - (use-local-map grid-engine-map) + (use-local-map grid-engine-list-mode-map) (run-hooks 'grid-engine-hook)) (defcustom grid-engine-host nil @@ -29,14 +29,14 @@ "The order of job columns to be displayed. The following keys are valid: job-id, priority, name, owner, state, time, queue, slots.") (defun grid-engine--init-keymap () - (setq grid-engine-map (make-keymap)) + (setq grid-engine-list-mode-map (make-keymap)) ;; disable all key bindings - (suppress-keymap grid-engine-map) - (define-key grid-engine-map (kbd "n") 'next-logical-line) - (define-key grid-engine-map (kbd "p") 'previous-logical-line) - (define-key grid-engine-map (kbd "q") 'bury-buffer) - (define-key grid-engine-map (kbd "g") 'revert-buffer) - (define-key grid-engine-map (kbd "") + (suppress-keymap grid-engine-list-mode-map) + (define-key grid-engine-list-mode-map (kbd "n") 'next-logical-line) + (define-key grid-engine-list-mode-map (kbd "p") 'previous-logical-line) + (define-key grid-engine-list-mode-map (kbd "q") 'bury-buffer) + (define-key grid-engine-list-mode-map (kbd "g") 'revert-buffer) + (define-key grid-engine-list-mode-map (kbd "") (lambda (&optional arg) (interactive) (let ((field (get-text-property (point) 'field)) -- cgit v1.2.3