mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
Prefer defvar-keymap in emacs-lisp/*.el
* lisp/emacs-lisp/backtrace.el (backtrace-mode-map): * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map): * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): * lisp/emacs-lisp/crm.el (crm-local-completion-map) (crm-local-must-match-map): * lisp/emacs-lisp/debug.el (debugger-mode-map): * lisp/emacs-lisp/edebug.el (edebug-mode-map, edebug-global-map) (edebug-eval-mode-map): * lisp/emacs-lisp/eieio-custom.el (eieio-custom-mode-map): * lisp/emacs-lisp/elp.el (elp-results-symname-map): * lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): * lisp/emacs-lisp/re-builder.el (reb-mode-map) (reb-lisp-mode-map, reb-subexp-mode-map): * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map) (tabulated-list-sort-button-map): * lisp/emacs-lisp/timer-list.el (timer-list-mode-map):
This commit is contained in:
parent
616d3c24e2
commit
162c6c12f9
12 changed files with 314 additions and 347 deletions
|
|
@ -81,13 +81,11 @@
|
|||
;; doing. Kids, don't try this at home!
|
||||
;;;###autoload (put 'list-timers 'disabled "Beware: manually canceling timers can ruin your Emacs session.")
|
||||
|
||||
(defvar timer-list-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(define-key map "c" 'timer-list-cancel)
|
||||
(easy-menu-define nil map ""
|
||||
'("Timers"
|
||||
["Cancel" timer-list-cancel t]))
|
||||
map))
|
||||
(defvar-keymap timer-list-mode-map
|
||||
"c" #'timer-list-cancel
|
||||
:menu
|
||||
'("Timers"
|
||||
["Cancel" timer-list-cancel t]))
|
||||
|
||||
(define-derived-mode timer-list-mode tabulated-list-mode "Timer-List"
|
||||
"Mode for listing and controlling timers."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue