From 187e9721c77376f20efaf720ba0d925fb38e9c55 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 25 Dec 2007 20:00:12 +0000 Subject: [PATCH] (asm-mode-map): Add a major mode menu. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/asm-mode.el | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ac2582e64c..20eb447dcee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-12-25 Dan Nicolaescu + + * progmodes/asm-mode.el (asm-mode-map): Add a major mode menu. + 2007-12-25 Richard Stallman * comint.el (comint-mode-map): Explicitly bind `delete' and `kp-delete' diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el index d38e6170a23..591adbd4392 100644 --- a/lisp/progmodes/asm-mode.el +++ b/lisp/progmodes/asm-mode.el @@ -79,6 +79,14 @@ (define-key map "\C-c;" 'comment-region) (define-key map "\C-j" 'newline-and-indent) (define-key map "\C-m" 'newline-and-indent) + (define-key map [menu-bar] (make-sparse-keymap)) + (define-key map [menu-bar asm-mode] (cons "Asm" map)) + (define-key map [asm-colon] + '("Insert Colon" . asm-colon)) + (define-key map [comment-region] + '("Comment Region" . comment-region)) + (define-key map [newline-and-indent] + '("Insert Newline and Indent" . newline-and-indent)) map) "Keymap for Asm mode.") -- 2.39.2